View source: R/process_records.R
process_records | R Documentation |
Process raw jsPsych data
process_records(x, .using = NULL, auto = default_parsers())
x |
Dataset with jsPsych records |
.using |
Parser function to use on each record. Use |
auto |
List of trial types and parser functions used for auto-detection. |
Original dataset with new column processed
with nested results.
## Not run: fn <- demo_file("jspsych-html-button-response.json") d <- read_jspsych(fn) d %>% filter(trial_type == trial_types$html_button_response) %>% process_records(.using = parse_html_button_response) %>% unnest(processed) # auto-detected d %>% filter(trial_type == trial_types$html_button_response) %>% process_records() %>% unnest(processed) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.