View source: R/geo_utilities.R
extract_boundaries | R Documentation |
PEPFAR VcPolygons are shared with orgunit uids only, making hard for analysts to identify specific polygon each orgunit level. This function extract orgunt attributes from Datim and append them to the global shapefile, allowing analysts to filter and work only with subset.
extract_boundaries(
spdf,
country,
level = 3,
username,
password,
export = FALSE,
name = NULL
)
spdf |
PEPFAR Global Shapefile |
country |
Country name |
level |
Orgunit level |
username |
Datim username |
password |
Datim password |
export |
Export extract as shapefile? |
name |
Export filename |
sf object with orgunit attributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.