Learn R Programming

beezdiscounting (version 0.3.2)

long_to_wide_mcq_excel: Reshape MCQ data from long to wide (as used in the 21- and 27-Item Monetary Choice Questionnaire Automated Scorer)

Description

Reshape MCQ data from long to wide (as used in the 21- and 27-Item Monetary Choice Questionnaire Automated Scorer)

Usage

long_to_wide_mcq_excel(dat, subj_col = "subjectid", ans_col = "response")

Value

Wide format MCQ data that can be used in the Excel Automated Scorers

Arguments

dat

Long format MCQ data

subj_col

Character column name of subject ids

ans_col

Character column name of responses

Examples

Run this code
long_to_wide_mcq_excel(generate_data_mcq(2))

Run the code above in your browser using DataLab