if (FALSE) {
# When indicator is known, download only the relevant file
dhsData <- getDHSdata(country = "Zambia",
indicator = "ancvisit4+",
year = 2018)
# When indicator is NULL or not recognized, download all files
dhsData <- getDHSdata(country = "Zambia",
indicator = NULL,
year = 2018)
names(dhsData)
}
Run the code above in your browser using DataLab