edf.events | R Documentation |
Loads the events of a SR EyeLink EDFfile.
edf.events(EDFfile, type, fields)
EDFfile |
a character string giving the name of the EDFfile to load. |
type |
a character string array giving the name of the event types to load. |
fields |
a character string array giving the names of the fields to load. |
type may be: "STARTBLINK", "STARTSACC", "STARTFIX", "STARTSAMPLES", "STARTEVENTS", "STARTPARSE", "ENDBLINK", "ENDSACC", "ENDFIX", "ENDSAMPLES", "ENDEVENTS", "ENDPARSE", "FIXUPDATE", "BREAKPARSE", "BUTTONEVENT", "INPUTEVENT", "MESSAGEEVENT", "SAMPLE_TYPE", "RECORDING_INFO" (default=ENDFIX.)
fields may be:
"time": effective time of event
"type": 1=STARTPARSE, 2=ENDPARSE, 3=STARTBLINK, 4=ENDBLINK, 5=STARTSACC, 6=ENDSACC, 7=STARTFIX, 8=ENDFIX, 17=STARTEVENTS, 18=ENDEVENTS, 24=MESSAGEEVENT, 25=BUTTONEVENT
"read": flags which items were included
"eye": 0=left, 1=right
"sttime": start time of the event
"entime": end time of the event
"hstx", "hsty": headref starting points
"gstx", "gsty": gaze starting points
"sta"
"henx", "heny": headref ending points
"genx", "geny": gaze ending points
"ena"
"havx", "havy": headref averages
"gavx", "gavy": gaze averages
"ava"
"avel": accumulated average velocity
"pvel": accumulated peak velocity
"svel", "evel": start, end velocity
"supd_x", "eupd_x": start, end units-per-degree
"supd_y", "eupd_y": start, end units-per-degree
"status": error, warning flags
"flags": error, warning flags
"input"
"buttons"
"parsedby": 7 bits of flags: PARSEDBY codes
default is c("sttime","entime","gavx","gavy")
Specification of the field values are copied from the EDF Access C API user manual.
a dataframe containing the specified fields of the events of a given type.
Guenther, T. and von der Malsburg, T.
## Not run: #this returns the start, end, (average) x coordinates, and (average) y coordinates of fixations: edf.events('example.EDF') #this gets the relevant information for saccades events <- edf.events("example.EDF",type='ENDSACC', fields=c('sttime','entime','gstx','gsty','genx','geny','avel','pvel')) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.