combine.eyedata | R Documentation |
combine.eyedata
can be used to take the results from edf.batch
and stack
into large data frames for fixations, saccades, etc.
combine.eyedata(batchdata, fields = c("fixations", "saccades", "blinks", "messages", "header"))
batchdata |
output from |
fields |
character array of the particular fields you want to combine (default is c('fixations', 'saccades','blinks','messages')). Warning: combining samples will result in extremely large data frames (millions of rows per subject) |
edf.batch
returns a list where each element has fields fixations
, saccades
,
blinks
, and (optionaly) samples
. This function takes that result and creates a single
data frame for all subjects' eye data
a list with each of the requested fields. Each one is a data frame with all subjects' data. Subjects will be identified by the "ID" varaiable.
Jason Hubbard, hubbard3@uoregon.edu
## Not run: #first load everything: allbatch <- edf.batch('~/Desktop/edfs','*.edf') alldata <- combine.eyedata(allbatch) all_fixations <- alldata$fixations all_saccades <- alldata$saccades ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.