Open japhir opened 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~.
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.