Skip to contents

Extract Country Polygons

Usage

cntry_polygons(spdf, cntry, attrs)

Arguments

spdf

VcPolygons data as Spatial Data Frame

cntry

Country name

attrs

Country orgunits, output of grabr::datim_orgunits(cntry, reshape = TRUE)

Value

list of spatial data frames

Examples

if (FALSE) {

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)

}