qualtRics (version 2.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, convertStandardColumns = TRUE, stripHTML = TRUE)

Arguments

file_name

String. A csv data file.

convertStandardColumns

Boolean. If TRUE, then the function will convert general data columns (first name, last name, lat, lon, ip address, startdate, enddate etc.) to their proper format. defaults to TRUE.

stripHTML

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

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 DataCamp Workspace