Skip to contents

Load PIP pre-calculated data sets

Usage

pip_load_results(
  output = NULL,
  country = NULL,
  year = NULL,
  tool = c("PC", "TB"),
  type = c("dataframe", "list"),
  root_dir = Sys.getenv("PIP_ROOT_DIR"),
  verbose = getOption("pipload.verbose")
)

Arguments

output

character: name of the output file

country

character: vector of ISO3 country codes.

year

numeric: survey year

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

type

character: Either dataframe or list. Defaults is dataframe.

root_dir

character: root directory of the PIP data

verbose

logical: If TRUE, display informative messages. Default TRUE

Value

data.table

Examples

pip_load_results("interpolated_means")
#> ! root_dir is not defined. Directory paths will lack network-drive root
#> directory
#> Error: [EACCES] Failed to make directory '/PIP-Data_QA': permission denied