Description Usage Arguments Details Examples
View source: R/preprocessing.R
A couple of steps are requied for reading and cleaning the raw data:
1 | load_and_parse(filename)
|
filename |
- Filename of the data file to load. |
1. Split the block condition information, of the form 'visworld_supervised_30', into the useful parts (the overall supervision condition and /b/ VOT) 2. Split the list ID (of the form 'BEACH_p_supervised') into its useful parts, which are the word class, actual category, and whether this _trial_ is supervised or unsupervised (only matters in the supervised condition) 3. Pull out the category of the image clicked on each trial (and convert to a 0/1 b/p response variable for later analysis) 4. Convert the /b/ vot condition variable to a factor to thwart ggplot defaults 5. Extract the numeric VOT of the actual stimulus.
The 'tidyr::separate' function really comes in handy with the first couple, and automagically cleans up the data frame by removing the original variabls.
1 | data <- load_and_parse('data/supunsup-ALL-visworld.csv')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.