View source: R/geo_utilities.R
cntry_polygons | R Documentation |
Extract Country Polygons
cntry_polygons(spdf, cntry, attrs)
spdf |
VcPolygons data as Spatial Data Frame |
cntry |
Country name |
attrs |
Country orgunits, output of |
list of spatial data frames
## Not run:
cntry = "Nigeria"
spdf <- gisr::get_vcpolygons(path = glamr::si_path("path_vector"), name = "VcPepfarPolygons.shp")
df_attrs <- grabr::get_attributes(cntry)
cntry_polygons(spdf = spdf, cntry = "Zambia", attrs = df_attrs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.