I have 'SpatialPolygons' object and I want to subset the polygons where @hole == FALSE and make a new object.
Using the code below predictably get 1 polygon at a time (or none if @hole == TRUE), but I am not able to subset multiple polygons from my object.
newSP <- aDis[aDis@polygons[[1]]@Polygons[[1]]@hole == FALSE]
I think my issue lies in that I don't know how to reference the second list "in general", i.e. take the items from list(Polygon) where @hole == FALSE. Leaving the second [[]] blank does not work.
P.S. sorry there is no reproducible example; I'm not sure exactly how to recreate this issue in a simple way.
