Skip to contents

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

if (FALSE) { # \dontrun{
list_surveys()
peru_survey <- download_survey("https://doi.org/10.5281/zenodo.1095664")
} # }