Load sf
district polygons
Details
The function loads district polygons for the specified year from the package's
extdata directory. The polygons are stored in an RDS file and are read using
the readRDS
function. The polygons are in the Simple Features (sf) format,
which is suitable for spatial data analysis in R. The polygons include following
attributes:
year
: The census year (e.g., 2020).adm2_code
: The administrative code for the district.