powered by
Get ID's of the shape items of sp objects. For polygons and lines, the ID attribute is used. For points, the coordinates are used.
get_IDs(shp)
shape object, which is one of
SpatialPolygons(DataFrame)
SpatialPoints(DataFrame)
SpatialLines(DataFrame)
vector of ID's