Learn R Programming

tmap (version 1.2)

get_IDs: Get ID's of the shape items

Description

Get ID's of the shape items. For polygons and lines, the ID attribute is used. For points, the coordinates are used.

Usage

get_IDs(shp)

Arguments

shp
shape object, which is one of
  1. SpatialPolygons(DataFrame)

Value

  • vector of ID's