Compare Vintage Versions for Multiple Auxiliary Data Files
compare_aux_vintages.Rd
This function wraps around compare_vintage_versions()
to apply it across multiple auxiliary data measures.
It is useful for tracking within-release changes across several files.
Usage
compare_aux_vintages(
measures = NULL,
version = -1,
root_dir = Sys.getenv("PIP_ROOT_DIR"),
maindir = getOption("pipaux.working_dir"),
verbose = FALSE,
apply_label = TRUE,
...
)
Arguments
- measures
Character vector. Names of auxiliary data measures to compare (e.g.,
c("gdp", "pop", "pfw")
).- version
Integer. Indicates how many versions before the latest to compare with (e.g.,
-1
for previous).- root_dir
Character. Root directory where the release data is stored. Defaults to
Sys.getenv("PIP_ROOT_DIR")
.- maindir
Character. Path to the main auxiliary data directory. Defaults to the
pipaux.working_dir
option.- verbose
Logical. If
TRUE
, messages about the comparison process are printed.- apply_label
Logical. Whether to apply labels when loading data. Defaults to
TRUE
.- ...
Additional arguments passed to
compare_vintage_versions()
.
Value
(Invisibly) A named list of results from compare_vintage_versions()
, one per measure.
Examples
if (FALSE) { # \dontrun{
compare_aux_vintages(measures = c("cpi", "pop", "gdp"))
} # }