get_survey: Get a survey, either from its Zenodo repository, a set of...

View source: R/get_survey.r

get_surveyR Documentation

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, ...)

Arguments

survey

a DOI (see list_surveys()), or a character vector of file names, or a survey() object (in which case only cleaning is done).

...

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

Value

a survey in the correct format

Examples

## Not run: 
  list_surveys()
  peru_survey <- get_survey("https://doi.org/10.5281/zenodo.1095664")

## End(Not run)

socialmixr documentation built on Oct. 29, 2022, 1:09 a.m.