Learn R Programming

geometr (version 0.1.1)

gc_sp: Transform a spatial object to class sp

Description

Transform a spatial object to class sp

Usage

# S4 method for geom
gc_sp(input = NULL)

Arguments

input

the object to transform to class sp.

Value

an object of class sp

See Also

Other spatial classes: gc_geom, gc_grob, gc_ppp, gc_sf

Examples

Run this code
# NOT RUN {
spPoints <- gc_sp(input = gtGeoms$point)
spLines <- gc_sp(input = gtGeoms$line)
spPolygon <- gc_sp(input = gtGeoms$polygon)
# }

Run the code above in your browser using DataLab