sp_promote | R Documentation |
sp_promote
will add a single variable named id
to the data slot
of a geometry. id
is a character vector.
sp_promote(sp)
sp |
Spatial object |
Stuart K. Grange
## Not run:
# Promote to spatial data frame
sp_with_data <- sp_promote(sp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.