extract_dhs | R Documentation |
Extracts data from your downloaded datasets according to a data.frame of requested survey variables or survey definitions
extract_dhs(questions, add_geo = FALSE)
questions |
Questions to be queried, in the format from
|
add_geo |
Add geographic information to the extract. Defaut = 'TRUE' |
Function to extract datasets using a set of survey questions as
taken from the output from search_variables
or search_variable_labels
A list
of 'data.frames' for each survey data extracted.
## Not run:
# get the model datasets included with the package
model_datasets <- model_datasets
# download one of them
g <- get_datasets(dataset_filenames = model_datasets$FileName[1])
# create some terms of data me may want to extrac
st <- search_variable_labels(names(g), "bed net")
# and now extract it
ex <- extract_dhs(st)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.