davebraze / FDBeye

R tools for eyetracker workflows.
https://davebraze.github.io/FDBeye/
Other
118 stars 14 forks source link

readELascii(): Reading sample data #13

Closed davebraze closed 6 years ago

davebraze commented 8 years ago

Maybe a better way to handle sample data across devices and recording modes when reading SRR *asc files is to use the mode flags in the samplesLine to build a header for sample df directly. So

hdr <- "time"
if (grepl("LEFT", samplesLine)
     hdr <- c(hdr, c("xL", "yL", "pL"))
if (grepl("RIGHT", samplesLine)
     hdr <- c(hdr, c("xR", "yR", "pR"))

And so on.

davebraze commented 6 years ago

@monicaycli has largely put this to rest in PR #47