Learn R Programming

RHRV (version 5.0.0)

ExtractTimeSegment: Time windows of HR record

Description

Extracts a temporal subset between the times starttime and endtime.

Usage

ExtractTimeSegment(HRVData, starttime, endtime)

Value

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

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.

Author

Leandro Rodriguez-Linares

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.

Examples

Run this code
if (FALSE) {
data(HRVProcessedData)
# Rename for convenience
HRVData <- HRVProcessedData
PlotNIHR(HRVData)
newHRVData <- ExtractTimeSegment(HRVData,2000,4000)
PlotNIHR(newHRVData)
}

Run the code above in your browser using DataLab