Computes the RR (beat-to-beat) interval series in milliseconds from a vector of R-peak sample indices.
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
# }