Learn R Programming

geometr (version 0.2.10)

getFeatures: Get the table of feature attributes

Description

Get tabular information of the attributes of features.

Usage

getFeatures(x)

# 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 Raster getFeatures(x)

# S4 method for matrix getFeatures(x)

Arguments

x

the object from which to derive the attribute table.

Value

A tibble (or a list of tibbles per layer) of the feature attributes of x.

Details

This table contains at least the column 'fid'. In case x has any typ other than 'grid', it contains also the column 'gid' and in case it has type 'grid', it also contains the column 'values'.

See Also

Other getters: getCRS(), getCols(), getExtent(), getGroups(), getHistory(), getLayers(), getNames(), getPoints(), getRes(), getRows(), getType(), getWindow()

Examples

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

getFeatures(x = gtRasters)

# }

Run the code above in your browser using DataLab