add_geometry | R Documentation |
Convert input data frame into a spatial data frame
add_geometry(x, location, feature_type = NA, geom_name = "geometry")
x |
Data frame with a feature name column. |
location |
Feature names (tidy evaluation). |
feature_type |
The registered map corresponding to values in |
geom_name |
Name for the new column to contain the geometry. |
A spatial data frame containing all of the columns from the input data frame.
add_geometry(nc_type_example_2, county, feature_type = "sf.nc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.