powered by
Convert input data frame into a spatial data frame
add_geometry(x, location, feature_type = NA, geom_name = "geometry")
A spatial data frame containing all of the columns from the input data frame.
Data frame with a feature name column.
Feature names (tidy evaluation).
The registered map corresponding to values in location. If NA (the default), the type is guessed from the values in location.
location
Name for the new column to contain the geometry.
add_geometry(nc_type_example_2, county, feature_type = "sf.nc")
Run the code above in your browser using DataLab