Limit Consecutive NA Interpolation
It would be beneficial to introduce a new parameter in the interpolate_data function that allows users to specify the maximum number of consecutive NAs to be interpolated. Currently, in long trials, pupillometryR may interpolate over extended sections of missing data, which might be more than desired for some analyses.
Sorry I have been slow with these. I'm hoping to dig in very soon. Thanks for the PR - looks exactly like what's needed here. I had originally planned one, but was worried about any value I put in being taken as a recommendation, so this seems like a nice compromise.
No worries—I just added things when I realized I needed them for some of my stuff! Happy to help
merged!