powered by
Downloads survey data
download_survey(survey, dir = NULL, sleep = 1)
a vector of filenames that can be used with load_survey
a URL (see list_surveys())
list_surveys()
a directory to save the files to; if not given, will save to a temporary directory
time to sleep between requests to avoid overloading the server (passed on to Sys.sleep)
Sys.sleep
if (FALSE) { list_surveys() peru_survey <- download_survey("https://doi.org/10.5281/zenodo.1095664") }
Run the code above in your browser using DataLab