davebraze / FDBeye

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

need more flexible function-internal references to data.frame columns #28

Open davebraze opened 7 years ago

davebraze commented 7 years ago

There are places in the code where we do stuff like this:

data_den <- matrix(numeric(0), nrow(data[data$type!='oob',]), n_lines)

Such that references to particular data.frame columns are hardwired, either by name or by position. We need to make this more flexible, so that a user can optionally specify the column to be used (by either name or position), but with reasonable defaults.