Skip to contents

Computes the RR (beat-to-beat) interval series in milliseconds from a vector of R-peak sample indices.

Usage

rrint(r_peaks, fs)

Arguments

r_peaks

Integer vector of R-peak sample indices.

fs

Sampling frequency in Hz.

Value

List with value (mean RR in ms), name, and extra (rr_ms, mean_rr, std_rr, n_intervals).

Details

Reference: Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology (1996) "Heart rate variability: standards of measurement, physiological interpretation, and clinical use", Circulation 93(5):1043–1065.

Examples

# \donttest{
rr <- rrint(c(100, 350, 600, 850, 1100), fs = 250)
rr$value
#> [1] 1000
# }