[R-sig-Geo] check all IDs of a spatialPolygons object

Agustin Lobo alobolistas at gmail.com
Thu May 20 14:37:11 CEST 2010


Is there a cleaner way to check all IDs of a spatialPolygons object?
I know how to do it with one:
 > slot(spol at polygons[[2]],"ID")
[1] "g2"

and for all of them I use
> sapply(spol at polygons,slot,"ID")

is there something more straightforward, sort of spFIDs() (by analogy
to spChFIDs() )?

Thanks

Agus



More information about the R-sig-Geo mailing list