View source: R/annotate_waveforms.R
find_abp_beats | R Documentation |
Position and value of systolic and diastolic pressures. Each row represents one beat with first a diastolic and then a systolic value.
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 )
data |
Vector of arterial blood pressure. |
abp_col |
Index or name of column with abp data |
time_col |
Vector with the same length as |
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. |
.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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.