Description Usage Arguments Details Value Author(s) Examples
View source: R/importQualtricsDataV3.R
This function imports data from Qualtrics into R using V3 API.
1 | importQualtricsDataV3(token, dataCenter, surveyID)
|
token |
Your token from Qualtrics. Defaults to 'token' from qualtricsAuth function (it has to be ran and loaded first). |
dataCenter |
The Qualtrics data center for your account. If you don't know it, you can use "ca1". If that is not your data center, it will just take a little longer to get your data. |
surveyID |
The survey ID from Qualtrics. |
You can find your token and survey ID in your account settings. Alternatively, you can use the 'qualtricsAuth' function to store a file with your username and token, and then use the 'surveyNamesID' function to pull all of the survey names into your R session.
This function returns a data table from data.table.
Seth Berry
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# Establish qualtricsAuth file first #
qualtricsAuth("username", "token") # You must provide these from Qualtrics.
load("file/location/qualtricsAuthInfo.RData")
dataTest <- importQualtricsDataV3(token, dataCenter, surveyID)
# Without qualtricsAuth #
dataTest <- importQualtricsDataV3(token = "yourAPIToken",
dataCenter = "ca1", surveyID = "yourSurveyID")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.