Skip to contents

https://www.jspsych.org/7.3/plugins/serial-reaction-time

Usage

parse_serial_reaction_time(d)

Arguments

d

List with unprocessed trial data

Value

Single row tibble with results. Check jsPsych documentation

for the list of available variables.

Examples

if (FALSE) {
fn <- demo_file("jspsych-serial-reaction-time.json")
d  <- read_jspsych(fn)
trials <-
  d %>%
  filter(trial_type == trial_types$serial_reaction_time) %>%
  select(record, trial_index, raw) %>%
  process_records(.using = parse_serial_reaction_time) %>%
  unnest(processed)
trials %>%
  select(-raw) %>%
  mutate(ncol = map_int(.$grid, ~ ncol(.)),
         nrow = map_int(.$grid, ~ nrow(.)))
}