Learn R Programming

RHRV (version 5.0.0)

Heart Rate Variability Analysis of ECG Data

Description

Allows users to import data files containing heartbeat positions in the most broadly used formats, to remove outliers or points with unacceptable physiological values present in the time series, to plot HRV data, and to perform time domain, frequency domain and nonlinear HRV analysis. See Garcia et al. (2017) .

Copy Link

Version

Install

install.packages('RHRV')

Monthly Downloads

1,069

Version

5.0.0

License

GPL-2

Maintainer

L RodriguezLinares

Last Published

September 30th, 2024

Functions in RHRV (5.0.0)

BuildTakensVector

Calculates Takens expanded vectors
CalculateApEn

Calculates Approximate Entropy
AddEpisodes

Adds new episodes manually
CalculatePowerBand

Calculates power per band
CalculateInfDim

Information dimension of the RR time series
CalculateFracDim

Calculates Fractal Dimension
CalculateEmbeddingDim

Estimate the proper embedding dimension for the RR time series
ExtractTimeSegment

Time windows of HR record
EstimatePSDSlope

Estimate the slope of the Power Spectral Density (PSD).
AnalyzeHRbyEpisodes

Analyzes Heart Rate using episodes information
CalculateSampleEntropy

Sample Entropy (also known as Kolgomorov-Sinai Entropy)
CalculateSpectrogram

Calculates the spectrogram of a signal
CalculateEnergyInPSDBands

CalculateSPDBandsEnergy
CreateTimeAnalysis

Creates data analysis structure for time analysis calculations
IntegralCorrelation

Calculates the Integral Correlation
EditNIHR

Manually edition of non-interpolated instantaneous heart rate
CreateHRVData

Creates data structure for all the calculations
AnalyzePowerBandsByEpisodes

Analyze power band by episodes
CalculatePSD

Spectral Density Estimation
CalculateMaxLyapunov

Maximum lyapunov exponent
AvgIntegralCorrelation

Calculates the average of the Integral Correlations
CalculateRfromCorrelation

Calculates ra and rb from Correlation
InterpolateNIHR

Linear or Spline interpolator for build the sample heart rate signal
CreateNonLinearAnalysis

Creates data analysis structure for non linear analysis calculations
LoadBeatWFDB

Imports data from a record in WFDB format
HRVData

HRVData
ListEpisodes

Episodes listing
HRVProcessedData

HRVProcessedData
PlotHR

Simple plot of interpolated heart rate
GenerateEpisodes

Creates new episodes from old ones
LoadEpisodesAscii

Loads episodes file
FilterNIHR

Artefact filter based in an adaptive threshold
CalculateTimeLag

Estimate an appropiate time lag for the Takens' vectors
LoadBeatAscii

Builds an array of beats positions from an ascii file
LoadBeatEDFPlus

Imports data from a record in EDF+ format
LoadHeaderWFDB

Imports header information from a record in wfdb format
LoadBeatPolar

Imports data from a record in Polar format
CreateFreqAnalysis

Creates data analysis structure for frequency analysis calculations
ModifyEpisodes

Modifies values of episodes
NonlinearityTests

Nonlinearity tests
SplitPowerBandByEpisodes

Splits Power Per Band using Episodes information
SplitHRbyEpisodes

Splits Heart Rate Data using Episodes information
PlotNIHR

Simple plot of non-interpolated heart rate
NonLinearNoiseReduction

Nonlinear noise reduction
LoadApneaWFDB

Loads apnea episodes for WFDB record
LoadBeat

Builds an array of beats positions from different type of files
LoadBeatSuunto

Imports data from a record in Suunto format
LoadBeatVector

Loads beats positions from an R vector
LoadBeatRR

Builds an array of beats positions from an ascii file
LoadBeatAmbit

Imports data from a record in Suunto Ambit XML format
SaveHRVIndices

Save the HRV indices as an excel file
RHRVEasy

Run a full HRV analysis including indices computation and statistical analysis
RHRVEasyStats

Rerun the statistical analysis from a previous `RHRVEasy()` call
PlotSinglePowerBand

PlotSinglePowerBand
PlotSpectrogram

Calculates and Plots spectrogram
SurrogateTest

Surrogate data testing
SetVerbose

Sets verbose mode on or off
PlotPSD

Plot Spectral Density Estimation
Window

Time windows of RR intervals
OverplotEpisodes

OverplotEpisodes
PoincarePlot

Poincare Plot
RHRV-package

RHRV: An R-based software package for the heart rate variability analysis of ECG recordings
RecurrencePlot

Recurrence Plot
PlotPowerBand

Plots power determined by CalculatePowerBand function
RQA

Recurrence Quantification Analysis (RQA)
RemoveEpisodes

Remove episodes by indexes or tags
WriteToFile

Writes data structure to a file
ReadFromFile

Reads data structure from file
getNormSpectralUnits

Normalized Spectral Units
BuildTakens

Build the Takens' vectors
CalculateCorrDim

Correlation sum, correlation dimension and generalized correlation dimension (order q >1)
BuildNIHR

Builds the instantaneous heart rate signal from a beat position array
CalculateDFA

Detrended Fluctuation Analysis