vectorToHRT {RHRT} | R Documentation |
Convert a vector to HRTList
Description
Scans for heart rate turbulence in a vector of RR-intervals and returns an HRTList object including all found HRT objects. The HRT criteria used were published by Schmidt et al. (more information can be found in the vignette.)
Usage
vectorToHRT(
input,
annotations = NULL,
PVCAnn = "V",
normIL = c_normIL,
normHallstrom = TRUE,
numPreRRs = c_numPreRRs,
numPostRRs = c_numPostRRs,
inputName = as.character(NA),
minHRT = 5,
cleaning = TRUE
)
Arguments
input |
(Numeric vector) RR intervals in ms |
annotations |
(Character vector) Annotations matching input |
PVCAnn |
(Character) Character that marks a VPC in the annotations |
normIL |
(Numeric) The interval length to which TS should be normalised |
normHallstrom |
(Boolean) Should the normalisation of Hallstrom be used? |
numPreRRs |
(Numeric) Number of RRs before the coupling interval that are used for filtering |
numPostRRs |
(Numeric) Number of RRs after the compensatory interval that are used for filtering |
inputName |
(String) Name of the data |
minHRT |
(Numeric) Minimal number of HRTs that are needed to create an HRTList object |
cleaning |
(Boolean) Should the input be roughly cleaned from artefacts before calculating IL and RMSSD? |
Value
(HRTList) An HRTList object
Examples
# You can use annotations to give the VPC indices
# Without annotation data RHRT will find VPCs based on common filtering criteria
vectorToHRT(testdataLong, annotations = testdataLong_Ann, PVCAnn = "V")
# Find HRTs with a broader range of sinus beats before and after the VPCs
vectorToHRT(testdataLong, inputName = "Dummy Measurement", numPreRRs = 10, numPostRRs = 20)
# Adjust the normalisation parameters
vectorToHRT(testdataLong, testdataLong_Ann, normHallstrom = FALSE, normIL = 900)