
Reshape MCQ data from long to wide (as used in the 21- and 27-Item Monetary Choice Questionnaire Automated Scorer)
Source:R/utils.R
long_to_wide_mcq_excel.RdReshape MCQ data from long to wide (as used in the 21- and 27-Item Monetary Choice Questionnaire Automated Scorer)
Examples
long_to_wide_mcq_excel(generate_data_mcq(2))
#> # A tibble: 27 × 3
#> questionid `1` `2`
#> <int> <int> <int>
#> 1 1 1 1
#> 2 2 1 1
#> 3 3 1 1
#> 4 4 1 0
#> 5 5 0 1
#> 6 6 1 0
#> 7 7 0 0
#> 8 8 0 0
#> 9 9 0 1
#> 10 10 1 0
#> # ℹ 17 more rows