View source: R/miscellaneous.R
get_shapefile | R Documentation |
download zipped shapefile and read shapefile.
get_shapefile(path, file_mask = NA, cache_path = NULL, refresh = FALSE)
path |
URL string to zipped shape file |
file_mask |
optional grep string in case there are several shape files in the package |
cache_path |
optional path where to cache the shapefiles |
refresh |
optional, re-downloads shape file data if set to TRUE |
an sf object with the data from the shape file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.