pip_load_aux | R Documentation |
Load any auxiliary data
pip_load_aux( measure = NULL, root_dir = Sys.getenv("PIP_ROOT_DIR"), maindir = pip_create_globals(root_dir)$PIP_DATA_DIR, msrdir = fs::path(maindir, "_aux", measure), version = NULL, file_to_load = NULL, apply_label = TRUE, verbose = getOption("pipload.verbose"), preferred_format = NULL )
measure |
character: Measure to be used. e.g., "cpi" or "ppp". |
root_dir |
character: root directory of the PIP data |
maindir |
character: main directory. By default it
uses |
msrdir |
character: measure (CPI) directory. created on |
version |
An integer or a quoted directive. "available": displays list
of available versions for |
file_to_load |
character: file path to load. Does not work with any other argument |
apply_label |
logical: if TRUE, predefined labels will apply to data
loaded using |
verbose |
logical: whether to display message. Default is TRUE |
preferred_format |
character: preferred format. default is "fst". |
data.table
# Load CPI cpi <- pip_load_aux("cpi") # load PPP ppp <- pip_load_aux("ppp") # Load GDP gdp <- pip_load_aux("gdp") measure <- "cpi" av <- pip_load_aux(measure, version = "available") head(av) df <- pip_load_aux(measure, version = av[1]) head(df) df <- pip_load_aux(measure, version = -1) head(df) ## Not run: df <- pip_load_aux(measure, version = "pick") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.