Skip to contents

Find cache data based on patterns

Usage

pip_find_cache(
  country = NULL,
  year = NULL,
  survey_acronym = NULL,
  data_level = NULL,
  welfare_type = NULL,
  source = NULL,
  tool = c("PC", "TB"),
  root_dir = Sys.getenv("PIP_ROOT_DIR"),
  pipedir = pip_create_globals(root_dir)$PIP_PIPE_DIR
)

Arguments

country

character: vector of ISO3 country codes.

year

numeric: survey year

survey_acronym

character: Survey acronym

data_level

character: either "D1" for national, "D2" for urban/rural, "D3" for subnational

welfare_type

character: Either "CON" for consumption or "INC" for income

source

character: Source of data. It could be GPWG, HIST, GROUP, synth, BIN, and ALL. The latter is used only in Table Maker.

tool

character: PIP tool in which data will be used. It could be PC for Poverty Calculator or TB for Table Maker. Others will be added

root_dir

character: root directory of the PIP data

pipedir

charater: directory of pipeline. Default is pip_create_globals(root_dir)$PIP_PIPE_DIR

Value

data.table

Examples

if (FALSE) {
pip_find_cache()
}