Learn R Programming

qualtRics (version 3.0)

getSurveyQuestions: Retrieve a data frame containing question IDs and labels

Description

Retrieve a data frame containing question IDs and labels

Usage

getSurveyQuestions(surveyID)

Arguments

surveyID

String. Unique ID for the survey you want to download. Returned as 'id' by the getSurveys function.

See Also

See https://api.qualtrics.com/docs for documentation on the Qualtrics API.

Examples

Run this code
# NOT RUN {
# Register your Qualtrics credentials if you haven't already
registerOptions(api_token="<YOUR-API-TOKEN>", root_url="<YOUR-ROOT-URL>")
# Retrieve a list of surveys
surveys <- getSurveys()
# Retrieve questions for a survey
questions <- getSurveyQuestions(surveyID = surveys$id[6])
# Retrieve a single survey, filtering for questions I want.
mysurvey <- getSurvey(surveyID = surveys$id[6],
                      save_dir = tempdir(),
                      includedQuestionIds = c("QID1", "QID2", "QID3"),
                      verbose=TRUE)
# }

Run the code above in your browser using DataLab