Package: RHRV 5.0.0

Leandro Rodriguez-Linares

RHRV: Heart Rate Variability Analysis of ECG Data

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) <doi:10.1007/978-3-319-65355-6>.

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]

RHRV_5.0.0.tar.gz
RHRV_5.0.0.zip(r-4.5)RHRV_5.0.0.zip(r-4.4)RHRV_5.0.0.zip(r-4.3)
RHRV_5.0.0.tgz(r-4.4-x86_64)RHRV_5.0.0.tgz(r-4.4-arm64)RHRV_5.0.0.tgz(r-4.3-x86_64)RHRV_5.0.0.tgz(r-4.3-arm64)
RHRV_5.0.0.tar.gz(r-4.5-noble)RHRV_5.0.0.tar.gz(r-4.4-noble)
RHRV_5.0.0.tgz(r-4.4-emscripten)RHRV_5.0.0.tgz(r-4.3-emscripten)
RHRV.pdf |RHRV.html
RHRV/json (API)

# Install 'RHRV' in R:
install.packages('RHRV', repos = c('https://r-forge.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://r-forge.r-project.org/projects/rhrv

Datasets:

On CRAN:

5.82 score 1 packages 62 scripts 1.1k downloads 80 exports 101 dependencies

Last updated 2 months agofrom:f45378bea6. Checks:OK: 3 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-win-x86_64OKOct 30 2024
R-4.5-linux-x86_64OKOct 30 2024
R-4.4-win-x86_64NOTEOct 30 2024
R-4.4-mac-x86_64NOTEOct 30 2024
R-4.4-mac-aarch64NOTEOct 30 2024
R-4.3-win-x86_64NOTEOct 30 2024
R-4.3-mac-x86_64NOTEOct 30 2024
R-4.3-mac-aarch64NOTEOct 30 2024

Exports:AddEpisodesAnalyzeHRbyEpisodesAnalyzePowerBandsByEpisodesAvgIntegralCorrelationBuildNIHRBuildTakensBuildTakensVectorCalculateApEnCalculateCorrDimCalculateDFACalculateEmbeddingDimCalculateEnergyInPSDBandsCalculateFracDimCalculateInfDimCalculateMaxLyapunovCalculatePowerBandCalculatePSDCalculateRfromCorrelationCalculateSampleEntropyCalculateSpectrogramCalculateTimeLagCreateFreqAnalysisCreateHRVDataCreateNonLinearAnalysisCreateTimeAnalysisEditNIHREstimateCorrDimEstimateDFAEstimateInfDimEstimateMaxLyapunovEstimatePSDSlopeEstimateSampleEntropyExtractTimeSegmentFilterNIHRGenerateEpisodesgetNormSpectralUnitsIntegralCorrelationInterpolateNIHRListEpisodesLoadApneaWFDBLoadBeatLoadBeatAmbitLoadBeatAsciiLoadBeatEDFPlusLoadBeatPolarLoadBeatRRLoadBeatSuuntoLoadBeatVectorLoadBeatWFDBLoadEpisodesAsciiLoadHeaderWFDBModifyEpisodesNonlinearityTestsNonLinearNoiseReductionOverplotEpisodesPlotCorrDimPlotDFAPlotHRPlotInfDimPlotMaxLyapunovPlotNIHRPlotPowerBandPlotPSDPlotSampleEntropyPlotSinglePowerBandPlotSpectrogramPoincarePlotReadFromFileRecurrencePlotRemoveEpisodesRHRVEasyRHRVEasyStatsRQASaveHRVIndicesSetVerboseSplitHRbyEpisodesSplitPowerBandByEpisodesSurrogateTestWindowWriteToFile

Dependencies:askpassbackportsbase64encbootbroombslibBWStestcachemclicodetoolscolorspacecpp11crosstalkcurldata.tabledigestdoParalleldplyrevaluatefansifarverfastmapfontawesomeforeachfsgenericsggplot2gluegmpgridExtragtablehighrhtmltoolshtmlwidgetshttrisobanditeratorsjquerylibjsonliteknitrkSampleslabelinglaterlatticelazyevallifecyclelombmagrittrMASSMatrixmemoisemgcvmimemultcompViewmultitapermunsellmvtnormnlmenonlinearTseriesopensslpillarpkgconfigplotlyplotrixPMCMRpluspracmapromisespurrrquadprogquantmodR6rappdirsRColorBrewerRcppRcppArmadillorlangrmarkdownRmpfrsassscalessegmentedstringistringrSuppDistssystibbletidyrtidyselecttinytextseriesTTRutf8vctrsviridisLitewaveslimwithrwritexlxfunxtsyamlzoo

RHRV Quick Start Tutorial

Rendered fromRHRV-quickstart.Rmdusingknitr::rmarkdownon Oct 30 2024.

Last update: 2017-02-09
Started: 2017-02-08

Automating HRV analysis: RHRVEasy

Rendered fromRHRVEasy.Rmdusingknitr::rmarkdownon Oct 30 2024.

Last update: 2024-05-16
Started: 2024-05-15

Readme and manuals

Help Manual

Help pageTopics
RHRV: An R-based software package for the heart rate variability analysis of ECG recordingsRHRV-package RHRV
Adds new episodes manuallyAddEpisodes
Analyzes Heart Rate using episodes informationAnalyzeHRbyEpisodes
Analyze power band by episodesAnalyzePowerBandsByEpisodes
Calculates the average of the Integral CorrelationsAvgIntegralCorrelation
Builds the instantaneous heart rate signal from a beat position arrayBuildNIHR
Build the Takens' vectorsBuildTakens
Calculates Takens expanded vectorsBuildTakensVector
Calculates Approximate EntropyCalculateApEn
Correlation sum, correlation dimension and generalized correlation dimension (order q >1)CalculateCorrDim EstimateCorrDim PlotCorrDim
Detrended Fluctuation AnalysisCalculateDFA EstimateDFA PlotDFA
Estimate the proper embedding dimension for the RR time seriesCalculateEmbeddingDim
CalculateSPDBandsEnergyCalculateEnergyInPSDBands
Calculates Fractal DimensionCalculateFracDim
Information dimension of the RR time seriesCalculateInfDim EstimateInfDim PlotInfDim
Maximum lyapunov exponentCalculateMaxLyapunov EstimateMaxLyapunov PlotMaxLyapunov
Calculates power per bandCalculatePowerBand
Spectral Density EstimationCalculatePSD
Calculates ra and rb from CorrelationCalculateRfromCorrelation
Sample Entropy (also known as Kolgomorov-Sinai Entropy)CalculateSampleEntropy EstimateSampleEntropy PlotSampleEntropy
Calculates the spectrogram of a signalCalculateSpectrogram
Estimate an appropiate time lag for the Takens' vectorsCalculateTimeLag
Creates data analysis structure for frequency analysis calculationsCreateFreqAnalysis
Creates data structure for all the calculationsCreateHRVData
Creates data analysis structure for non linear analysis calculationsCreateNonLinearAnalysis
Creates data analysis structure for time analysis calculationsCreateTimeAnalysis
Manually edition of non-interpolated instantaneous heart rateEditNIHR
Estimate the slope of the Power Spectral Density (PSD).EstimatePSDSlope
Time windows of HR recordExtractTimeSegment
Artefact filter based in an adaptive thresholdFilterNIHR
Creates new episodes from old onesGenerateEpisodes
Normalized Spectral UnitsgetNormSpectralUnits
HRVDataHRVData
HRVProcessedDataHRVProcessedData
Calculates the Integral CorrelationIntegralCorrelation
Linear or Spline interpolator for build the sample heart rate signalInterpolateNIHR
Episodes listingListEpisodes
Loads apnea episodes for WFDB recordLoadApneaWFDB
Builds an array of beats positions from different type of filesLoadBeat
Imports data from a record in Suunto Ambit XML formatLoadBeatAmbit
Builds an array of beats positions from an ascii fileLoadBeatAscii
Imports data from a record in EDF+ formatLoadBeatEDFPlus
Imports data from a record in Polar formatLoadBeatPolar
Builds an array of beats positions from an ascii fileLoadBeatRR
Imports data from a record in Suunto formatLoadBeatSuunto
Loads beats positions from an R vectorLoadBeatVector
Imports data from a record in WFDB formatLoadBeatWFDB
Loads episodes fileLoadEpisodesAscii
Imports header information from a record in wfdb formatLoadHeaderWFDB
Modifies values of episodesModifyEpisodes
Nonlinearity testsNonlinearityTests
Nonlinear noise reductionNonLinearNoiseReduction
OverplotEpisodesOverplotEpisodes
Simple plot of interpolated heart ratePlotHR
Simple plot of non-interpolated heart ratePlotNIHR
Plots power determined by CalculatePowerBand functionPlotPowerBand
Plot Spectral Density EstimationPlotPSD
PlotSinglePowerBandPlotSinglePowerBand
Calculates and Plots spectrogramPlotSpectrogram
Poincare PlotPoincarePlot
Reads data structure from fileReadFromFile
Recurrence PlotRecurrencePlot
Remove episodes by indexes or tagsRemoveEpisodes
Run a full HRV analysis including indices computation and statistical analysisRHRVEasy
Rerun the statistical analysis from a previous `RHRVEasy()` callRHRVEasyStats
Recurrence Quantification Analysis (RQA)RQA
Save the HRV indices as an excel fileSaveHRVIndices
Sets verbose mode on or offSetVerbose
Splits Heart Rate Data using Episodes informationSplitHRbyEpisodes
Splits Power Per Band using Episodes informationSplitPowerBandByEpisodes
Surrogate data testingSurrogateTest
Time windows of RR intervalsWindow
Writes data structure to a fileWriteToFile