Re-score all questionnaires in a study or export
Source:R/questionnaires.R
score_all_questionnaires.RdTakes the questionnaire data frame (as returned in $questionnaires from
read_export() or read_study()) and adds re-computed score_r and
label_r columns using the R scoring functions. Useful for validation or
when raw answers were imported without scores.
Value
The questionnaire data frame with two additional columns:
score_r (re-computed score) and label_r (interpretation label).
Examples
if (FALSE) { # \dontrun{
study <- read_study("exports/")
score_all_questionnaires(study)
} # }