Skip to contents

https://www.jspsych.org/7.3/plugins/cloze

Usage

parse_cloze(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-cloze.json")
d  <- read_jspsych(fn)
trials <-
  d %>%
  filter(trial_type == trial_types$cloze) %>%
  select(record, trial_index, raw) %>%
  process_records(.using = parse_cloze) %>%
  unnest(processed)
# for individual values
trials %>%
  unnest(response) %>%
  mutate(cell_value = flatten_chr(response))
}