Reads all .json files in a directory and combines them into a single
tallier_study object. Useful when each participant's data was exported
as a separate file, or when multiple batch exports need to be merged.
Arguments
- dir
Path to a directory containing
.jsonexport files.- rescore
Logical. Passed to
read_scoreme().- pattern
Regular expression used to filter filenames. Defaults to
"\\.json$"(all JSON files).
Value
A tallier_study object: a list with elements:
filesCharacter vector of files read.
participantsCombined list of all participant records.
n_participantsTotal number of participants.
Examples
if (FALSE) { # \dontrun{
study <- read_scoreme_dir("exports/")
wide <- scores_wide(study)
} # }