qualtrics.rune {wizaRdry}R Documentation

Parse composite Qualtrics survey into component data frames by variable prefix

Description

This function fetches a Qualtrics data frame containing multiple surveys and separates it into individual data frames for each survey detected in the data. It identifies the appropriate identifier column (e.g., participantId, workerId) and splits the data based on column name prefixes.

Usage

qualtrics.rune(
  qualtrics_alias,
  institution = NULL,
  label = FALSE,
  interview_date = NULL,
  lower = TRUE
)

Arguments

qualtrics_alias

Character string specifying the Qualtrics survey alias to retrieve.

institution

Character string; default NULL, specify location

label

Logical; default TRUE, returns coded values as labels instead of raw values.

interview_date

Logical or Date String, returns all data before date

lower

default TRUE convert prefixes to lower case

Details

The function performs the following steps:

Value

Creates multiple dataframes in the global environment, one for each survey detected in the data. Each dataframe is named after its survey prefix.

Examples

## Not run: 
# Parse a Qualtrics export containing multiple surveys
qualtrics.rune("combined_surveys", label = FALSE)

# After running, access individual survey dataframes directly:
head(pss)  # Access the PSS survey dataframe
head(cesd) # Access the CESD survey dataframe

## End(Not run)


[Package wizaRdry version 0.2.6 Index]