UtrechtUniversity / clumped-processing

Clumped isotope measurement processing script for Thermo Fisher MAT 253 plus isotope ratio mass spectrometer with the Kiel IV
GNU General Public License v3.0
4 stars 0 forks source link

do rolling window offset correction based on file_datetime #11

Open japhir opened 1 year ago

japhir commented 1 year ago

in stead of doing it based on the number of measurements before/after the current one (currently a window of 200 around the measurement), do it based on the file_datetime itself so that if there was a holiday or gap in measurements, they don't get added.

Use R package slider for this, especially the slider::hop function.

japhir commented 1 year ago

some more old notes: research rollapply vs time: make offset_correction(_wrapper) work on file_datetime in stead of row so that skipped samples are not taken into account

offset_correction_wrapper

in that case it would be ~slide_index~.