View source: R/get_survey_data.R
get_survey_data | R Documentation |
Download a survey data set from Qualtrics corresponding to a variable
dictionary generated by dict_generate
.
Question, items, levels and labels are added as attributes using
sjlabelled
.
get_survey_data(dict, keys = NULL, split_by_block = FALSE, skip = NULL, ...)
dict |
A variable dictionary returned by
|
keys |
A character vector containing variables to be added, if
|
split_by_block |
Logical. If |
skip |
Logical. If |
... |
Other arguments passed to
|
A dataframe containing survey data with question, items, levels and
labels added as attributes to each column with sjlabelled
.
## Not run:
# Generate a dictionary
mydict <- dict_generate("SV_4YyAHbAxpdbzacl",
survey_name = "mysurvey",
var_name = "easy_name",
block_pattern = block_pattern,
block_sep = ".",
split_by_block = FALSE
)
survey_dat <- get_survey_data(mydict,
unanswer_recode = -77,
unanswer_recode_multi = 0
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.