Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

qualtricsBlockStack

Create meta data frame to align identical questions


Description

Qualtrics returns a data frame that has vertical "blocks", one for each "treatment condition" in an experimental condition. Researchers often want to align the questions from the blocks vertically, essentially converting the Qualtrics "wide" format to a "long" format. This is a helper function that identifies questions that may need to be stacked together. The input is a meta data structure (can be retrieved as an attribute from importQualtrics). It will find out which questions are identical and prepare to re-align ("stack") the columns.

Usage

qualtricsBlockStack(meta, questionname = "question")

Arguments

meta

A meta data structure retrieved from importQualtrics

questionname

Character string for name of column in meta data that holds the questions

Value

A new meta data table that horizontally aligns equivalent questions.

Author(s)

Paul Johnson


kutils

Project Management Tools

v1.70
GPL-2
Authors
Paul Johnson [aut, cre], Benjamin Kite [aut], Charles Redmon [aut], Jared Harpole [ctb], Kenna Whitley [ctb], Po-Yi Chen [ctb], Shadi Pirhosseinloo [ctb]
Initial release
2020-04-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.