This function reads all VRthreat output data from one study into a data frame. The
read_study_data(
rawpath,
metapath,
remove_duplicates = TRUE,
remove_tutorial_epochs = TRUE
)The path that contains the individual subjects' directories. The path name may have been changed during data curation, and the original top-level directory name in the VR output will be replaced by this path.
The path that contains the meta data. This must contain the following csv files, which are used in their order of appeareance:
replacements.csv: joins interrupted participants. Must contain columns ppid_old, ppid_new, session_num_new, last_trial_exclude
participants_excluded.csv: participants to exclude. Must contain column ppid
trial_exclusions.csv: individual trials to exclude. Must contain columns ppid, session_num, trial_num
Whether or not to remove duplications in replaced
ppids, see apply_replacements for more information. Default: TRUE.
whether or not to remove tutorial epochs from the data
set. Default: TRUE.
A data frame with all experiment data