Retrieve Malawi boundary layer

get_boundary(id, adm = NULL)

Arguments

id

Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange

adm

Integer. Administrative level required. Either 0 for country, 1 for regions, 2 for districts, or 3 for traditional authority areas.

Value

An sf object for specific boundary of Malawi

Examples

get_boundary(id = "cod-ab-mwi", adm = 0)
#> Reading layer `mwi_admbnda_adm0_nso_hotosm_20230405' from data source 
#>   `/tmp/RtmpBr6BvK' using driver `ESRI Shapefile'
#> Simple feature collection with 1 feature and 7 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 32.67164 ymin: -17.12975 xmax: 35.91848 ymax: -9.367346
#> Geodetic CRS:  WGS 84