This function will remove trials that have too much missing data. See https://dr-jt.github.io/pupillometry/ for more information.
pupil_missing(x, missing_allowed = 1)
dataframe.
What proportion of missing data is allowed, per trial?
Removes rows for trials with too much missing data. Adds a `Pupil_Missing` or `Pupil_Missing_1` and `Pupil_Missing_2` columns.
This can be used:
1) after artifact removal and before smoothing / interpolation
2) after smoothing / interpolation
or
3) both