Skip to contents

Returns a data frame with one row per participant and one column per questionnaire. When a participant completed a questionnaire more than once, only the most recent administration is included (use scores_long() to retain all administrations).

Usage

scores_wide(obj, include_meta = TRUE)

Arguments

obj

A tallier_export or tallier_study object.

include_meta

Logical. If TRUE (default), participant metadata columns (code, name, age, sex, etc.) are prepended.

Value

A data.frame with columns: participant metadata (if requested) followed by one numeric score column per questionnaire.

Examples

if (FALSE) { # \dontrun{
study <- read_scoreme_dir("exports/")
wide  <- scores_wide(study)
head(wide)
} # }