sfc: Create simple feature collection object of class sfc from...

Description Usage Arguments Details Examples

Description

Create simple feature list column, set class, and add coordinate reference system

Usage

1
st_sfc(..., crs = NA_crs_, precision = 0)

Arguments

...

one or more simple feature geometries

crs

coordinate reference system: integer with the epsg code, or character with proj4string

precision

numeric; see st_as_binary

Details

a simple feature collection object is a list of class c("stc_TYPE", "sfc") which contains objects of identical type. This function creates such an object from a list of simple feature geometries (of class sfg).

Examples

1
2
3
4
pt1 = st_point(c(0,1))
pt2 = st_point(c(1,1))
(sfc = st_sfc(pt1, pt2))
d = data.frame(a = 1:2)

mdsumner/gv documentation built on May 22, 2019, 4:44 p.m.