Bin pupil data into smaller time-bins. This is useful to perform time-series analyses or to just reduce the size of the data. See https://dr-jt.github.io/pupillometry/ for more information.

pupil_bin(x, bin_length = NULL)

Arguments

x

dataframe.

bin_length

Length of bins in milliseconds.

Output

Reduces the number of rows into discrete time-bins. Changes the values in Time and pupil columns.