Subset fields when reading from DHIS2
Usage
dhis2_subset_fields(data, fields = c("dataElement", "period", "value"))
Examples
if (FALSE) {
results <- dhis2_subset_fields(
data = readepi(
credentials_file = system.file("extdata", "test.ini",
package = "readepi"),
data_source = "https://play.dhis2.org/demo",
query_parameters = list(
dataSet = "pBOMPrpg1QX,BfMAe6Itzgt",
orgUnit = "DiszpKrYNg8",
startDate = "2014",
endDate = "2023")
)$data,
fields = c("dataElement", "period", "value")
)
}