
Process World Bank Poverty Ratio Data
Source:R/process_WB_poverty_ratio_data.R
process_WB_poverty_ratio_data.RdReads the raw World Bank poverty ratio CSV (skipping the first 4 metadata rows), reshapes it to long format via a for loop, writes the processed data as a CSV to disk, and returns it. Uses base R functions only.
Arguments
- PATHS
List. Project paths object with components
DATA_RAWandDATA_PROCESSED.Reads the newest raw CSV for indicator
SI.POV.DDAYinfile.path(PATHS$DATA_RAW, 'world_bank', 'poverty_ratio')(seedownload_WB_data()).Writes
file.path(PATHS$DATA_PROCESSED, 'world_bank', 'world_bank_poverty_ratio_data.csv'), creating the directory if needed.