pip_find_dlw | R Documentation |
Find surveys available for DatalibWeb
pip_find_dlw( country = NULL, year = NULL, survey_acronym = NULL, vermast = NULL, veralt = NULL, module = NULL, tool = NULL, condition = NULL, root_dir = Sys.getenv("PIP_ROOT_DIR"), dlw_dir = pip_create_globals(root_dir)$DLW_RAW_DIR, filter_to_pc = FALSE, filter_to_tb = FALSE, verbose = getOption("pipload.verbose") )
country |
character: vector of ISO3 country codes. |
year |
numeric: survey year |
survey_acronym |
character: Survey acronym |
vermast |
character: Master version in the form v## or ## |
veralt |
character: Alternative version in the form v## or ## |
module |
character: Source of data. It could be |
tool |
character: PIP tool in which data will be used. It could be
|
condition |
character: logical condition that applies to all surveys.
For example, "year > 2012". Make sure the condition uses the names of the
variables in |
root_dir |
character: root directory of the PIP data |
dlw_dir |
character: Main directory |
filter_to_pc |
logical: If TRUE filter most recent data to be included in the Poverty Calculator. Default if FALSE |
filter_to_tb |
logical: If TRUE filter most recent data to be included in the Table Maker. Default if FALSE |
verbose |
logical: whether to display message. Default is TRUE |
data.frame: list of filenames to be loaded with pcn_load()
# all years for one country pip_find_dlw(country = "ARG") #' # all years for more than one country pip_find_dlw(country = c("COL", "ARG")) # specific years for one country pip_find_dlw( country = "COL", year = c(2010, 2012) ) # country FHF does not exist so it will be part of `fail` output (No error) pip_find_dlw( country = c("ARG", "FHF"), year = 2010 ) # Load a different module (e.g., GPWG) pip_find_dlw(country = "PRY", year = 2010, module = "GPWG", tool = "PC") # Load different modules pip_find_dlw(country = "COL", module = "HIST") ## Not run: # more than two years for more than one country (only firt year will be used) pip_find_dlw( country = c("COL", "ARG"), year = c(2010, 2012) ) # all countries and years pip_find_dlw() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.