| st_as_sf | R Documentation |
Converts a character string of c-squares in a spatially explicit simple features object
(sf. It can also convert data.frames with a column of c-squares codes to
an sf object.
st_as_sf.csquares(x, ..., use_geometry = TRUE)
st_as_sfc.csquares(x, ..., use_geometry = TRUE)
x |
A |
... |
Ignored |
use_geometry |
If |
In case of st_as_sfc.csquares a list of geometries (sfc,
(MULTI)POLYGONS) is returned. In case of st_as_sf.csquares an object of class
(sf) is returned.
Pepijn de Vries
library(sf)
st_as_sfc(as_csquares("7500:110:3|7500:110:1|1500:110:3|1500:110:1"))
st_as_sf(as_csquares("7500:110:3|7500:110:1|1500:110:3|1500:110:1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.