importQualtricsData: Imports data from Qualtrics into R.

Description Usage Arguments Details Value Author(s) Examples

Description

This function imports data from Qualtrics into R.

Usage

1
importQualtricsData(username, token, surveyID, dropExtra, dropFirstRow, skip)

Arguments

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

Details

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.

Value

This function returns a data frame.

Author(s)

Seth Berry

Examples

 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)

saberry/qualtricsR documentation built on Aug. 21, 2020, 5:55 p.m.