read_jspsych | R Documentation |
By default, the code expects a file with a single JSON structure
with white spaces and line delimiters (single = T)
.
The alternative behaviour (single = F)
expects a format with multiple
JSON records, each in a single line.
Results stored in JATOS server follow this structure.
read_jspsych(filepath, single = T)
filepath |
File to read |
single |
Indicates whether the file contains a single record or multiple records (each on separate line) |
A tibble with each trial/plugin result as a separate line. The tibble features following columns:
trial_type
(string) - The name of the plugin used to run the trial.
trial_index
(numeric) - The index of the current trial across the whole experiment.
time_elapsed
(numeric) - The number of milliseconds between the start of the experiment and when the trial ended.
internal_node_id
(string) - A string identifier for the current TimelineNode.
raw
(list) - list column with all plugin data
parse_single_record()
read_jspsych(demo_file("jspsych-html-button-response.json"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.