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, sleep = 1)

Arguments

survey

a URL (see list_surveys())

dir

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

sleep

time to sleep between requests to avoid overloading the server (passed on to Sys.sleep)

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)

sbfnk/socialmixr documentation built on April 20, 2024, 9:23 p.m.