fix_time_shifts: Fix Time shifts in vital waveforms

View source: R/fix_waveforms.R

fix_time_shiftsR Documentation

Fix Time shifts in vital waveforms

Description

Vital Recorder may introduce short shifts in time in waveform recordings. This is probably an error, and can be removed. This function looks through a waveform and for every diff higher than 1/samplerate, subtracts this diff - samplerate from all signal-times that are later than the culprit.

Usage

fix_time_shifts(
  signal_list,
  skip_shift = NULL,
  show_diagnostics = TRUE,
  diagnostic_signal = "CVP"
)

Arguments

signal_list

list of vital signals

skip_shift

Index (vector) of shift to skip (allow in output)

show_diagnostics

Show diagnostic prints and plots

diagnostic_signal

Signal to use in diagnostic plots


JohannesNE/waveformtools documentation built on July 1, 2022, 8:48 p.m.