Save a cleaned version of the survey data in the cache survey data directory.

create_cache_file(
  pipeline_inventory,
  pip_data_dir,
  cache_svy_dir,
  tool = c("PC", "TB"),
  compress = 100,
  verbose = FALSE,
  force = FALSE,
  cpi_table,
  ppp_table,
  pfw_table,
  pop_table
)

Arguments

pipeline_inventory

data.table: Pipeline inventory table.

pip_data_dir

character: Input folder for the raw survey data.

cache_svy_dir

character: Output folder for the cached survey data.

tool

character: Either "PC" or "TB" for poverty calculator and Table Baker, receptively

compress

numeric: Compression level used in fst::write_fst().

verbose

boolean: If TRUE additional messages are printed to the console.

force

logical: if TRUE, all files will be generate again.

pfw_table

data.table: A table with the price framework file.

pop_table

data.table: A table with population data.

Value

list: creation status and cache data availability