ExtractTimeSegment: Time windows of HR record

Description Usage Arguments Details Value Author(s) Examples

View source: R/ExtractTimeSegment.R

Description

Extracts a temporal subset between the times starttime and endtime.

Usage

1
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

1
2
3
4
5
6
7
8
9
## Not run: 
data(HRVProcessedData)
# Rename for convenience
HRVData <- HRVProcessedData
PlotNIHR(HRVData)
newHRVData <- ExtractTimeSegment(HRVData,2000,4000)
PlotNIHR(newHRVData)

## End(Not run)

RHRV documentation built on May 20, 2017, 12:26 a.m.

Search within the RHRV package
Search all R packages, documentation and source code