survey_transpose: Transpose survey data to prep for CXi calculation

Description Usage Arguments Details Value

View source: R/utils.R

Description

Transposes survey data from wide to long to prepare for tidy calculation of CXi

Usage

1
survey_transpose(survey_data, ...)

Arguments

survey_data

Raw survey data. Needs to be one row per survey with the three CXi question responses having column names of needs, ease and emotion

...

optional colunns by which to group the CXi calculation. There is no limit to the number of grouping variables chosen. Too many will likely result in CXi calculations that are too fragmented / based on very small survey counts.

Details

This function is called by other functions in the package that do the final CXi calculations.

Value

Data frame with one row per survey response for each of the three CXi questions


chrisumphlett/cxiCalc documentation built on Dec. 30, 2019, 10:18 p.m.