-
Is it possible to change the way data is saved throughout the timeline? What I try to achieve is to have the collected answers in one line per participant, rather than one line per trial. I was looking either for a way to suppress some of the trials from writing in the data object or a way to "merge" the trial data. Of course, this would be even more useful if I could do it inside cognition.run (where I'm afraid that is not possible at all to remove some of the info that it collects, like user_agent, browser_version, etc.) any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @kernel52, One-line-per-trial is pretty built in to the core of how jsPsych manages the data structure. If you only want to save a few values per participant then you could write a custom function to run at the end of the experiment that created a single array or object of data and send this off to some server. If you are working in cognition.run then you won't have enough control over the backend to do this. You could, in theory, use the But, there are simpler ways to do this outside of JavaScript where you can take advantage of data wrangling pipelines. My recommendation would be to focus on post-processing the data you get to wrangle it into your preferred format. |
Beta Was this translation helpful? Give feedback.
Hi @kernel52,
One-line-per-trial is pretty built in to the core of how jsPsych manages the data structure. If you only want to save a few values per participant then you could write a custom function to run at the end of the experiment that created a single array or object of data and send this off to some server.
If you are working in cognition.run then you won't have enough control over the backend to do this. You could, in theory, use the
call-function
plugin to perform the data summarization and return the object containing the data. Then all of the data for each participant would be stored in the trial associated with thecall-function
plugin running. You could then filter the CSV fi…