Skip to contents

Pull Orgunits SQLView

Usage

datim_orgunits(
  cntry,
  username,
  password,
  reshape = FALSE,
  baseurl = "https://final.datim.org/"
)

Arguments

cntry

Country name

username

Datim username

password

Datim password

reshape

Unpack parent org units

baseurl

Datim API Base URL, default to https://final.datim.org/

Value

OU/Country Orgunits as a data frame

Examples

if (FALSE) { # \dontrun{
  library(grabr)

  datim_orgunits(
   cntry = "Mozambique",
   username = glamr::datim_user(),
   password = glamr::datim_pwd()
  )
} # }