getTable: Get the attribute table of a spatial object.
Description
Get the attribute table of a spatial object.
Usage
# S4 method for ANY
getTable(x)
# S4 method for geom
getTable(x, slot = NULL)
# S4 method for Spatial
getTable(x)
# S4 method for sf
getTable(x)
# S4 method for ppp
getTable(x)
# S4 method for RasterLayer
getTable(x)
# S4 method for RasterBrick
getTable(x)
# S4 method for matrix
getTable(x)
Arguments
x
the object from which to derive the attribute table.
slot
[character(1)] the geom slot from which to get the
attribute table, either "point", "feature" or "group".
If left at NULL, 'feature' and 'group' will be joined.