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

getGroups

Get the table of group attributes


Description

Get the table of group attributes

Usage

getGroups(x)

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

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

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

Arguments

x

the object from which to derive the attribute table.

Details

This table contains at least the column 'gid'.

When this function is called on "ANY" object, it is first tested whether that object has features (getFeatures), from which the groups can be reconstructed. If this is not the case, NULL is returned.

Value

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

See Also

Examples

getGroups(x = gtGeoms$polygon)

# for raster objects, groups are pixels with the same value and their
# attributes are in the raster attribute table (RAT)
getGroups(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.