find_abp_beats: Create DataFrame of arterial pressure waveform annotations.

View source: R/annotate_waveforms.R

find_abp_beatsR Documentation

Create DataFrame of arterial pressure waveform annotations.

Description

Position and value of systolic and diastolic pressures. Each row represents one beat with first a diastolic and then a systolic value.

Usage

find_abp_beats(
  data,
  abp_col = 2,
  time_col = 1,
  min_PP = 0.2,
  min_beat_width_s = 0.3,
  win_size_avg = 2000,
  min_cross_to_diastole = NULL,
  show.plot = FALSE,
  include_waveform = FALSE,
  sample_rate = NULL
)

Arguments

data

Vector of arterial blood pressure.

abp_col

Index or name of column with abp data

time_col

Vector with the same length as abp, used to indicate the timing of each sample. If this variable is provided, sample indexes will be substituted for this vector.

min_beat_width_s

Minimum beat width (in seconds) The default is 0.3 seconds

win_size_avg

Window size for moving avg calculation. This is used to calculate the cutoff value for when a peak represents a new beat and not just noise. Lower values increase flexibility. Use visualize_abp_peak_detection() to dial in.

min_cross_to_diastole

Minimum time (seconds) from the threshold crossing (downstroke) to the diastole. Can be used to avoid detecting a low dicrotic notch as a diastole.

show.plot

Show diagnostic plot

include_waveform

Include waveform for each beat in output

sample_rate

Used if data is a vector of samples.

Details

.noise_pos_after_sys is the sum of positive changes in ABP excluding the systole and the dicrotic notch, divided by the beat length in seconds. 2 mmhg/s seems like a good cutoff.


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