View source: R/LoadBeatVector.R
LoadBeatVector | R Documentation |
Stores the beat positions from an R vector under the HRVData data structure.
LoadBeatVector(HRVData, beatPositions, scale = 1, datetime = "1/1/1900 0:0:0")
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 |
A HRVData structure containing the heartbeat positions from the beatPositions vector.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.