Skip to contents

Create a dataset with GDP data from World Economic Outlook.

Usage

pip_gdp_weo(action = "update", force = FALSE, 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.

maindir

character: Main directory of project.

Details

Note that the most recent version most be downloaded from imf.org and saved as an .xls file in <maindir>/_aux/weo/. The filename should be in the following structure WEO_<YYYY-DD-MM>.xls. Due to potential file corruption the file must be opened and re-saved before it can be updated with pip_gdp_weo(). Hopefully in the future IMF will stop using an .xls file that's not really xls.