q_readv: Read variable information from a qualtrics file into a tibble...

Description Usage Arguments Value

Description

Reads in the first two lines of a Qualtrics Survey file. The first line contains the variable names and the second contains the complete labels, such as question text. The minor exception are the default Qualtrics variables, which are named V1, V2, and so on. The variable name for these are stored in the second row. Thus, for these, the label is substituted as the variable name.

Usage

1
q_readv(file, drop_empty = TRUE)

Arguments

file

Either a path to a file, a connection, or literal data (either a single string or a raw vector).

Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed. Files starting with http://, https://, ftp://, or ftps:// will be automatically downloaded. Remote gz files can also be automatically downloaded & decompressed.

Literal data is most useful for examples and tests. It must contain at least one new line to be recognised as data (instead of a path).

Value

tibble with variable ('var') and corresponding label columns.


drsimonj/qualtricsr documentation built on May 15, 2019, 2:53 p.m.