Get tabular information of the attributes of features.
Usage
# S4 method for ANY
getFeatures(x, ...)
# S4 method for geom
getFeatures(x, ...)
# S4 method for Spatial
getFeatures(x, ...)
# S4 method for sf
getFeatures(x, ...)
# S4 method for ppp
getFeatures(x, ...)
# S4 method for Raster
getFeatures(x)
# S4 method for matrix
getFeatures(x)
Arguments
x
the object from which to derive the attribute table.
...
subset based on logical predicates defined in terms of the
columns in x or a vector of booleans. Multiple conditions are
combined with &. Only rows where the condition evaluates to TRUE are kept.
Value
A table of the feature attributes of x or an object where the
features table has been subsetted.
# NOT RUN {getFeatures(x = gtGeoms$polygon)
# get a subset of an sf-objectgetFeatures(x = gtSF$multilinestring, a == 1)
# get the values of a RasterLayergetFeatures(x = gtRasters$continuous)
# }