Description Usage Arguments Details Value Author(s) Examples
This function imports data from Qualtrics into R.
1 | importQualtricsData(username, token, surveyID, dropExtra, dropFirstRow, skip)
|
username |
Your username from Qualtrics. Defaults to 'username' from qualtricsAuth function (it has to be ran and loaded first). |
token |
Your token from Qualtrics. Defaults to 'token' from qualtricsAuth function (it has to be ran and loaded first). |
surveyID |
The survey ID from Qualtrics. |
dropExtra |
Logical (default: FALSE) indicating if you want the first 10 columns dropped. This is often useless data, but sometimes you might want to keep the date. |
dropFirstRow |
Logical (default: FALSE) indicating if you want the first row dropped after read |
skip |
(default: 0) passed into read.csv to determine the number of rows to skip on read |
You can find your username, 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 frame.
Seth Berry
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# Establish qualtricsAuth file first #
qualtricsAuth("username", "token") # You must provide these from Qualtrics.
load("file/location/qualtricsAuthInfo.RData")
importQualtricsData(username, token, surveyID = "idString")
# Without qualtricsAuth #
importQualtricsData(username = "qualtricsUser@email.address#brand",
token = "tokenString", surveyID = "idString",
dropExtra = TRUE, skip = NULL, dropFirstRow = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.