Learn R Programming

geometr (version 0.1.1)

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.

Value

A table of the attributes of x.

See Also

Other getters: getCRS, getExtent, getHistory, getPoints, getSubset, getType, getWindow

Examples

Run this code
# NOT RUN {
getTable(x = gtGeoms$polygon)

getTable(x = gtSP$SpatialPolygons)

getTable(x = gtSF$multiline)

getTable(x = gtPPP)

getTable(x = gtRasters$categorical)
# }

Run the code above in your browser using DataLab