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

ExtractTimeSegment

Time windows of HR record


Description

Extracts a temporal subset between the times starttime and endtime.

Usage

ExtractTimeSegment(HRVData, starttime, endtime)

Arguments

HRVData

Data structure that stores the beats register and information related to it. This function calls Window to perform the extraction.

starttime

The start time of the period of interest.

endtime

The end time of the period of interest.

Details

If the HRVData contains episodes, beats or RR time series, these will be also extracted into the new HRV structure. On the other hand, all the analysis stored in the original structure will be lost.

Value

A new HRVData structure containing the temporal data within the specified range.

Author(s)

Leandro Rodriguez-Linares

Examples

## Not run: 
data(HRVProcessedData)
# Rename for convenience
HRVData <- HRVProcessedData
PlotNIHR(HRVData)
newHRVData <- ExtractTimeSegment(HRVData,2000,4000)
PlotNIHR(newHRVData)

## 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.