download_survey: Download a survey from its Zenodo repository

View source: R/download_survey.r

download_surveyR Documentation

Download a survey from its Zenodo repository

Description

Downloads survey data

Usage

download_survey(survey, dir = NULL)

Arguments

survey

a URL (see list_surveys())

dir

a directory to save the files to; if not given, will save to a temporary directory

Value

a vector of filenames that can be used with load_survey

Examples

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

## End(Not run)

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