Learn R Programming

geometr (version 0.2.5)

getFeatures: Get the table of feature attributes

Description

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.

See Also

Other getters: getCRS(), getExtent(), getGroups(), getHistory(), getLayer(), getName(), getPoints(), getRes(), getType(), getWindow()

Examples

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

# get a subset of an sf-object
getFeatures(x = gtSF$multilinestring, a == 1)

# get the values of a RasterLayer
getFeatures(x = gtRasters$continuous)
# }

Run the code above in your browser using DataLab