get_surveys | R Documentation |
get_surveys
downloads the survey datasets to be used to estimate public opinion across countries and over time
get_surveys(vars, datapath = "../data/dcpo_surveys", chime = TRUE)
vars |
a data frame (or, optionally, a vector of survey names or a .csv file) of survey items |
datapath |
path to the directory that will house the raw survey datasets |
chime |
play chime when complete? |
get_surveys
, when passed a data frame of survey items, downloads the
source survey datasets, converts them to .RData format, and saves them to a specified
directory for later use by dcpo_setup
. When constructing a list of surveys, one
should be sure to use the name employed in DCPO
's built-in surveys_data
database:
View(surveys_data)
.
the function downloads datasets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.