Skip to contents

Extract PEPFAR Org Hierarchy

Usage

datim_pull_hierarchy(
  ou_uid,
  username,
  password,
  add_geom = FALSE,
  baseurl = "https://final.datim.org/",
  folderpath_output = NULL
)

Arguments

ou_uid

UID for the country, recommend using identify_ouuids

username

DATIM username, recommend using datim_user

password

DATIM password, recommend using datim_pwd

add_geom

Add geometry column to the output, default is false

baseurl

API base url, default = https://final.datim.org/

folderpath_output

provide the full path to the folder for saving

Note

This function is migrated from Wavelength and is similar to datim_orgunits

Examples

if (FALSE) { # \dontrun{
#get OU UID
  ouuid <- identify_ouuids() %>% dplyr::filter(country == "Kenya")
#pull hierarchy (paths are all UIDs)
  df <- datim_pull_hierarchy(ouuid, username = myuser, password = mypwd(myuser)) } # }