Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

LoadBeatVector

Loads beats positions from an R vector


Description

Stores the beat positions from an R vector under the HRVData data structure.

Usage

LoadBeatVector(HRVData, beatPositions, scale = 1,
  datetime = "1/1/1900 0:0:0")

Arguments

HRVData

Data structure that stores the beats recording and information related to it

beatPositions

Numeric vector with the heartbeats occurrence's times since the beginning of the recording. See scale parameter to specify the units

scale

Numeric value identifying the temporal units in which the beat positions are specified: 1 if beat positions is specified in seconds, 0.001 if beat positions in milliseconds, etc.

datetime

Date and time (DD/MM/YYYY HH:MM:SS) of the beginning of the recording

Value

A HRVData structure containing the heartbeat positions from the beatPositions vector.

Examples

## Not run: 
hd = CreateHRVData()
hd = LoadBeatVector(hd, 
     c(0.000, 0.328, 0.715, 0.124, 1.50,1.880, 2.268, 2.656))
hd = BuildNIHR(hd)
# ... continue analyzing the recording

## End(Not run)

RHRV

Heart Rate Variability Analysis of ECG Data

v4.2.6
GPL-2
Authors
Leandro Rodriguez-Linares [aut, cre], Xose Vila [aut], Maria Jose Lado [aut], Arturo Mendez [aut], Abraham Otero [aut], Constantino Antonio Garcia [aut], Matti Lassila [ctb]
Initial release
2020-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.