Returns a long data frame with one row per participant x questionnaire x
administration, augmented with clinical interpretation columns (label,
color, description). Mirrors the shape of scores_long() so the two
can be joined by participant_id + questionnaire_id + completed_at.
Arguments
- obj
A
tallier_exportortallier_studyobject.- include_meta
Logical. If
TRUE(default), participant metadata columns are prepended (same columns asscores_long()).- instruments
An optional named list of additional registry entries from
load_instrument()orload_instrument_dir().
Value
A data.frame with columns: participant metadata (optional),
questionnaire_id, completed_at, score, label, color,
description.
Details
Scores that cannot be interpreted (unknown instrument, NA score, or
composite score with no matching band) return NA in all three
interpretation columns rather than an error, so the rest of the study
data is unaffected.
Examples
if (FALSE) { # \dontrun{
study <- read_scoreme_dir("exports/")
interps <- interpret_all(study)
# Join with scores_long() if you need both
scores <- scores_long(study)
full <- merge(scores, interps[
c("participant_id", "questionnaire_id", "completed_at",
"label", "color", "description")
], by = c("participant_id", "questionnaire_id", "completed_at"),
all.x = TRUE)
} # }