getDataValueSets: getDataValueSets

View source: R/getDataValueSets.R

getDataValueSetsR Documentation

getDataValueSets

Description

Used to read DHIS 2 data using the data value set endpoint

Usage

getDataValueSets(
  variable_keys = NULL,
  variable_values = NULL,
  d2_session = dynGet("d2_default_session", inherits = TRUE),
  retry = 1,
  timeout = 180,
  verbose = FALSE,
  quiet = TRUE
)

Arguments

d2_session

R6 datimutils object which handles authentication with DATIM

retry

number of times to retry

timeout

number of seconds to wait during call

verbose

return raw content with data

quiet

Echo the URL which is called to the console if TRUE.

keys

character vector - data value set parameter keys (e.g. "dataSet", "period")

values

character vector - values marching the key from keys (e.g. "Abcde123456", "2019Q1"

Value

Data frame with the data requested


pepfar-datim/datimutils documentation built on Nov. 20, 2023, 7:58 a.m.