rename_geometry | R Documentation |
correctly renames the geometry column of a sf object.
rename_geometry(g, name)
g |
sf data.table |
name |
character name to be used for geometry |
sf data.frame with geometry column renamed according to name parameter
(g <- sf::st_sf(a=3, geo = sf::st_sfc(sf::st_point(1:2))))
rename_geometry(g, "geometry")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.