Learn R Programming

qualtRics (version 3.0)

readSurvey: Read comma separated csv file from Qualtrics.

Description

readSurvey Reads comma separated csvdata files generated by Qualtrics software. The second line containing the variable labels is imported. Repetitive introductions to matrix questions are automatically removed. Variable labels are stored as attributes.

Usage

readSurvey(file_name, stripHTML = TRUE, legacyFormat = FALSE)

Arguments

file_name

String. A csv data file.

stripHTML

Logical. If TRUE, then remove html tags. Defaults to TRUE

legacyFormat

Logical. If TRUE, then import "legacy" format csv files (as of 2017). Defaults to FALSE

Value

A data frame. Variable labels are stored as attributes. They are not printed on the console but are visibile in the RStudio viewer.

Examples

Run this code
# NOT RUN {
my_data_frame <- readSurvey("<YOUR-PATH-TO-CSV-FILE>")
# }

Run the code above in your browser using DataLab