Learn R Programming

socialmixr (version 0.3.2)

get_survey: Get a survey, either from its Zenodo repository, a set of files, or a survey variable

Description

Downloads survey data, or extracts them from files, and returns a clean data set.

Usage

get_survey(survey, ...)

Value

a survey in the correct format

Arguments

survey

a DOI or url to get the survey from, or a survey() object (in which case only cleaning is done).

...

options for clean(), which is called at the end of this

Examples

Run this code
if (FALSE) {
list_surveys()
peru_survey <- get_survey("https://doi.org/10.5281/zenodo.1095664")
}

Run the code above in your browser using DataLab