parse_animation: animation parser

View source: R/parsers.R

parse_animationR Documentation

animation parser

Description

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

Usage

parse_animation(d)

Arguments

d

List with unprocessed trial data

Value

Single row tibble with results. Check jsPsych documentation for the list of available variables.

Examples

## Not run: 
fn <- demo_file("jspsych-animation.json")
d  <- read_jspsych(fn)
anim_data <-
  d %>%
  filter(trial_type == trial_types$animation) %>%
  select(record, trial_index, raw) %>%
  process_records(.using = parse_animation) %>%
  unnest(processed)
anim_data %>% unnest(response)
anim_data %>% unnest(animation_sequence)

## End(Not run)

jirilukavsky/jspsychread documentation built on Jan. 29, 2023, 5:35 p.m.