PupillometryR icon indicating copy to clipboard operation
PupillometryR copied to clipboard

Limit Consecutive NA Interpolation

Open TommasoGhilardi opened this issue 10 months ago • 2 comments

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.

TommasoGhilardi avatar Mar 03 '25 21:03 TommasoGhilardi

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.

samhforbes avatar Mar 03 '25 23:03 samhforbes

No worries—I just added things when I realized I needed them for some of my stuff! Happy to help

TommasoGhilardi avatar Mar 05 '25 16:03 TommasoGhilardi

merged!

samhforbes avatar Apr 17 '25 11:04 samhforbes