You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have helper functions for generating stimuli. For example, a set of stimuli in jsPsych for a Stroop experiment can be defined in an object as follows:
The stimulus column is empty and needs the appropriate html to define each stimulus. After that, the idea would be to write a function that translates this data frame to a JS object for jsPsych, with stimuli and data attributes.
But, maybe it would be helpful to also write a function that could take a dataframe like this one and generate the necessary html to describe the stimuli. The constructor would do something like, create
snippets and assign styles based on entries in the table...
It would be nice to have helper functions for generating stimuli. For example, a set of stimuli in jsPsych for a Stroop experiment can be defined in an object as follows:
The above defines 4 individual items, and it takes a bit of copying and pasting to define the remaining combinations.
GOAL
It would be nice to have the stimuli described in table, say tidy format like a dataframe:
Then, write a function that converts the data.frame to the JS object format.
The text was updated successfully, but these errors were encountered: