Learn R Programming

geometr (version 0.1.1)

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, ...)

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_sf, gc_sp

Examples

Run this code
# NOT RUN {
(geomPoints <- gc_geom(input = gtPPP))
(geomPoly <- gc_geom(input = gtSF$polygon))
(geomLine <- gc_geom(input = gtSP$SpatialLinesDataFrame))
# }

Run the code above in your browser using DataLab