reportSaccades | R Documentation |
Extract a saccade report from an ELascii object
reportSaccades(dat, trialvars = TRUE)
dat |
An object of class "ELascii", as created by readELascii(). |
trialvars |
Logical, defaults TRUE to include trial variables in saccade report. |
Saccade reports include data from both eyes, if available, as well as subject ID, trial number, time stamp of first sample in each trial. By default, values for trial variables found in each trial are also include, although these may be suppressed.
A data.frame containing a saccade report with the following columns:
subject: factor for subject ID, taken from the name of the source EDF file.
trialn: factor for trial ID.
time0: integer indicating timestamp (ms) of first sample in recording block.
event: factor for event type, always "SACC".
eye: factor indicating eye for corresponding saccade, ranges over c("L", "R").
stime: integer indicating start time for fixation (ms).
etime: integer indicating end time for fixation (ms).
dur: integer indicating duration of fixation (ms).
xpos1: starting x position
ypos1: starting y position
xpos2: ending x position
ypos2: ending y position
ampl: amplitude (units?)
peakvel: peak velocity (units?)
Returned data.frame will also include trial_vars from edf file if requested (TRUE by default).
Dave Braze davebraze@gmail.com
fname <- system.file("/extdata/1950006-RAN.asc.gz", package="FDBeye") e <- readELascii(fname) esacc <- reportSaccades(e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.