Downloads the latest PR (household) and GE (geographic) DHS datasets for specified countries.
download_dhs_datasets(
country_codes,
cache_path = here::here("01_data", "1a_survey_data", "raw"),
output_dir_root = here::here("01_data", "1a_survey_data", "raw"),
survey_id = NULL,
email,
project,
verbose = TRUE,
clear_cache = TRUE
)
Invisibly returns a list of downloaded dataset filenames.
A character vector of ISO3 country codes.
A character string specifying the cache path for RDHS.
A character string specifying the root directory for output.
A character vector of survey IDs. If NULL, uses latest survey.
A character string. Email registered with DHS.
A character string. Project name as registered with DHS.
Logical for rdhs setup and messages to be printed.
Logical whether to clear cache before downloading.