Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getFeatures

Get the table of feature attributes


Description

Get tabular information of the attributes of features.

Usage

getFeatures(x)

## S4 method for signature 'ANY'
getFeatures(x)

## S4 method for signature 'geom'
getFeatures(x)

## S4 method for signature 'Spatial'
getFeatures(x)

## S4 method for signature 'sf'
getFeatures(x)

## S4 method for signature 'Raster'
getFeatures(x)

## S4 method for signature 'matrix'
getFeatures(x)

Arguments

x

the object from which to derive the attribute table.

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'.

Value

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

See Also

Examples

getFeatures(x = gtGeoms$polygon)

getFeatures(x = gtRasters)

geometr

Generate and Modify Interoperable Geometric Shapes

v0.2.10
GPL-3
Authors
Steffen Ehrmann [aut, cre] (<https://orcid.org/0000-0002-2958-0796>), Dan Sunday [cph] (fast point-in-polygon algorithm.)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.