Skip to contents

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.

Usage

extract_boundaries(
  spdf,
  country,
  level = 3,
  username,
  password,
  export = FALSE,
  name = NULL
)

Arguments

spdf

PEPFAR Global Shapefile

country

Country name

level

Orgunit level

username

Datim username

password

Datim password

export

Export extract as shapefile?

name

Export filename

Value

sf object with orgunit attributes