Retrieve WorldPop data
get_worldpop.Rd
Retrieves WorldPop data from the shared drive.
Arguments
- version_date
A string in the format of "yyyy-mm", corresponding to the version of the WorldPop file you wish to load.
- source
A string used to determine which WorldPop file to load. Options are: "pop" and "erg_district", "erg_national", "dhf_district", "dhf_national".
Examples
# defaults to population dataset
get_worldpop("2023-07")
#> Reading in WorldPop Population file dated: 2023-07
#> Error: 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Demographics/WorldPop/2023-07/outputs/worldpop_2023-07.csv' does not exist.
# for ERG and distance to facility data sets, indicate if it is district or national level
get_worldpop("2023-07", source = "erg_district")
#> Reading in WorldPop ERG district file dated: 2023-07
#> Error: 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Coverage/WorldPop ERG/2023-07/outputs/erg_district_data_2023-07.csv' does not exist.