qualtrics_read_survey: Read a CSV File Exported From Qualtrics.

Description Usage Arguments Value Author(s) Examples

View source: R/qualtrics_read_survey.R

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

1
2
3
readSurvey(file_name, stripHTML = TRUE, legacyFormat = FALSE)

qualtrics_read_survey(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.

Author(s)

Adrian Brugger, Stefan Borer & Jasper Ginn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Generic use of readSurvey()
my_data_frame <- readSurvey("<YOUR-PATH-TO-CSV-FILE>")
# Example using current data format
file <- system.file("extdata", "sample.csv", package = "qualtRics")
sample_df <- readSurvey(file)
# Example using legacy data format
file <- system.file("extdata", "sample_legacy.csv", package = "qualtRics")
sample_legacy_df <- readSurvey(file)

## End(Not run)

JasperHG90/qualtRics documentation built on May 7, 2019, 10:33 a.m.