Description Usage Arguments Value Author(s) Examples
View source: R/qualtrics_read_survey.R
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.
1 2 3 | readSurvey(file_name, stripHTML = TRUE, legacyFormat = FALSE)
qualtrics_read_survey(file_name, stripHTML = TRUE, legacyFormat = FALSE)
|
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 |
A data frame. Variable labels are stored as attributes. They are not printed on the console but are visibile in the RStudio viewer.
Adrian Brugger, Stefan Borer & Jasper Ginn
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.