View source: R/pip_load_cache.R
pip_load_cache | R Documentation |
Load cache data
pip_load_cache( country = NULL, year = NULL, tool = c("PC", "TB"), survey_acronym = NULL, data_level = NULL, welfare_type = NULL, source = NULL, cache_id = NULL, condition = NULL, type = c("dataframe", "list"), root_dir = Sys.getenv("PIP_ROOT_DIR"), pipedir = pip_create_globals(root_dir)$PIP_PIPE_DIR, verbose = getOption("pipload.verbose") )
country |
character: vector of ISO3 country codes. |
year |
numeric: survey year |
tool |
character: PIP tool in which data will be used. It could be
|
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 |
cache_id |
character: If user knows the precise cache ID |
condition |
character: logical condition that applies to all surveys.
For example, "year > 2012". Make sure the condition uses the names of the
variables in |
type |
character: Either |
root_dir |
character: root directory of the PIP data |
pipedir |
charater: directory of pipeline. Default is
|
verbose |
logical: If TRUE, display informative messages. Default TRUE |
data frame
## Not run: pip_load_cache("PRY", 2017) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.