Reads a single JSON file exported from the ScoreMe app and returns a
tallier_export object containing participant metadata and all
questionnaire results.
Arguments
- path
Path to a
.jsonfile exported from ScoreMe.- rescore
Logical. If
TRUE(default), scores are recomputed from item-level answers using the built-in tallieR scoring functions. IfFALSE, the scores stored in the export file are used as-is.- instruments
An optional named list of custom instrument registry entries created by
load_instrument()orload_instrument_dir(). Whenrescore = TRUE, these are merged with the built-in registry so that custom questionnaires in the export can be scored. Entries ininstrumentstake precedence over built-ins with the same id.
Value
A tallier_export object: a list with elements:
exported_atTimestamp of the export (character).
export_versionSchema version string.
participantsA list of parsed participant records.
n_participantsNumber of participants.
Examples
if (FALSE) { # \dontrun{
exp <- read_scoreme("my_study_export.json")
print(exp)
wide <- scores_wide(exp)
# With custom instruments
custom <- load_instrument("fss.json")
exp <- read_scoreme("export.json", instruments = custom)
wide <- scores_wide(exp)
} # }