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)
dataframe.
Length of bins in milliseconds.
Reduces the number of rows into discrete time-bins. Changes the values in Time and pupil columns.