Retrieve the responses to a survey.
responses(design_object, use_labels = TRUE, verbose = FALSE, key = Sys.getenv("QUALTRICS_KEY"), subdomain = Sys.getenv("QUALTRICS_SUBDOMAIN"), ...)
design_object | A |
---|---|
use_labels | Use question labels and choice descriptions (default), instead of question and identifiers. |
verbose | Print progress. |
key | A Qualtrics API key (by default, the value of the environment
variable |
subdomain | A Qualtrics subdomain (by default, the value of the
environment variable |
... | Additional parameters for the |
A table of survey responses.
Implementation: responses
requests that Qualtrics prepare a zipfile
for download; once it is ready, the archive is downloaded to a location given
by tempfile
and unzipped; its JSON contents read and
parsed; and the temporary files deleted.
By default, descriptive question labels and choice descriptions are requested
instead of question ids and choice codes. This is controlled by argument
use_labels
.
Other documented Qualtrics API
parameters that affect the format of survey responses are available. For
example, passing seenUnansweredRecode = "99"
in the call to
responses
will show "99"
as the response to unanswered
questions instead of NA
, the default. The parameters that cannot be
changed via ...
are surveyId
(exposed as argument id
),
useLabels
(exposed as argument use_labels
), and format
,
(which must be json
).