sfc_point | R Documentation |
constructs sfc of POINT objects
sfc_point(obj, x = NULL, y = NULL, z = NULL, m = NULL)
obj |
sorted vector, matrix or data.frame |
x |
x geometry column |
y |
y geometry column |
z |
z geometry column |
m |
m geometry column |
sfc
object of POINT geometries
sfheaders functions do not perform any validity checks on the geometries. Nor do they set Coordinate Reference Systems, EPSG, PROJ4 or precision attributes.
The data.frame and matrices you send into the sfheader functions must be ordered.
x <- c(1:3)
sfc_point( x )
x <- matrix( c(1:10) , ncol = 2 )
sfc_point( x )
x <- setNames( as.data.frame( x ), c("x","y") )
sfc_point( x )
sfc_point( obj = x, x = "x", y = "y" )
sfc_point( obj = x, x = "y", y = "x" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.