download_datasets.RdDownload datasets specified using output of available_datasets.
download_datasets(config, desired_dataset, download_option = "both", reformat = TRUE, all_lower = TRUE, output_dir_root = NULL, ...)
| config | Object of class `rdhs_config` as produced by `read_rdhs_config` that must contain a valid `email`, `project` and `password`. |
|---|---|
| desired_dataset | Row from |
| download_option | Character dictating how the survey is stored when downloaded. Must be one of:
|
| reformat | Boolean detailing whether dataset rds should be reformatted for ease of use later. Default = TRUE |
| all_lower | Logical indicating whether all value labels should be lower case. Default to `TRUE`. |
| output_dir_root | Directory where files are to be downloaded to |
| ... | Any other arguments to be passed to
|