Learn R Programming

geometr (version 0.2.5)

gc_geom: Transform a spatial object to class geom

Description

Transform a spatial object to class geom

Usage

# S4 method for Spatial
gc_geom(input = NULL, ...)

# S4 method for sf gc_geom(input = NULL, group = FALSE, ...)

# S4 method for ppp gc_geom(input = NULL, ...)

# S4 method for Raster gc_geom(input = NULL, ...)

Arguments

input

the object to transform to class geom.

...

additional arguments.

group

[logical(1)] should the attributes of multi* features be grouped, i.e. should the unique values per multi* feature be assigned into the groups table (TRUE), or should they be kept as duplicated per-feature attributes (FALSE, default)?

Value

an object of class geom

See Also

Other spatial classes: gc_grob(), gc_ppp(), gc_raster(), gc_sf(), gc_sp()

Examples

Run this code
# NOT RUN {
gc_geom(input = gtPPP)

gc_geom(input = gtSF$polygon)

gc_geom(input = gtRasters$categorical)
# }

Run the code above in your browser using DataLab