Choose which eye to use for analysis. See https://dr-jt.github.io/pupillometry/ for more information.

select_eye(x, eye_use = "")

Arguments

x

dataframe.

eye_use

Which eye to use? left or right?

Output

This function removes columns related to the non-selected eye and renames columns of the selected eye by removing the L_ or R_ prefix. It also adds a column `Pupil.r`.

If both eyes were recorded from, then this function will correlate the pupil data from both eyes and select only one eye data to keep for further preprocessing and output.