edf.samples | R Documentation |
Loads the samples of a SR EyeLink EDFfile.
edf.samples(EDFfile, fields, eventmask=FALSE, trials=FALSE)
EDFfile |
a character string giving the name of the EDFfile to load. |
fields |
a character string array giving the names of the fields to load. |
eventmask |
logical indicating whether to add
an |
trials |
logical indicating whether to include
trial information (will add a variable called |
fields may be:
"time": time stamp of sample
"flags": flags to indicate contents
"pxL": left pupil x
"pxR": right pupil x
"pyL": left pupil y
"pyR": right pupil y
"hxL", "hxR", "hyL", "hyR": headref x, y
"paL", "paR": pupil size or area
"gxL", "gxR", "gyL", "gyR": screen gaze x, y
"rx", "ry": screen pixels per degree
"status": tracker status flags
"errors": process error flags
Specification of the field values are copied from the EDF Access C API user manual.
a dataframe containing the specified fields of the samples.
Guenther, T., Jason Hubbard, and von der Malsburg, T.
## Not run: edf.samples("example.EDF", c("time","gxL","gyL","paL","gxR","gyR","paR")) edf.samples(EDFfile="example.EDF", fields=c("time","gxL","gyL","paL","gxR","gyR","paR")) #imports trial information edf.samples(EDFfile='example.EDF', trials=T) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.