List of countries
pip_country_list.Rd
Load or update dataset with WDI countries. See details.
Usage
pip_country_list(
action = "update",
force = FALSE,
pcndir = gls$PCN_MASTER,
maindir = gls$PIP_DATA_DIR
)
Arguments
- action
character: Either "load" or "update". Default is "update". If "update" data will be updated on the system. If "load" data is loaded in memory.
- force
logical: If TRUE data will be overwritten.
- pcndir
character: PovcalNet directory for the Masterfile.
- maindir
character: Main directory of project.
Details
This function creates a combined dataset of countries in WDI and their
respective regional classification by querying wbstats::wb_countries()
, as
well as reading from the PovcalNet Masterfile to fetch PCN region codes.
The dependency on the PCN Masterfile should be changed in the future.