importQualtricsDataV3: Imports data from Qualtrics into R using API V3.

Description Usage Arguments Details Value Author(s) Examples

View source: R/importQualtricsDataV3.R

Description

This function imports data from Qualtrics into R using V3 API.

Usage

1
importQualtricsDataV3(token, dataCenter, surveyID)

Arguments

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.

Details

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.

Value

This function returns a data table from data.table.

Author(s)

Seth Berry

Examples

 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)

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