I am struggling with the RHRV library in R. The library is made for heart rate variability analysis and supports data files formats like ASCII, EDF, Polar, Suunto and WFDB. RHRV uses a custom data structure called HRVData to store all HRV information related to the signal being analysed. However I am working with already loaded (from .csv file) RR vectors. RRs are distances between consecutive heartbeats (in milliseconds). My exemplary data looks like:
RR_series <- rnorm(300, mean = 1000, sd = 15)
My problem is to insert RR_series
into any of RHRV function so I can conduct further analysis - I want to input RR_series
into HRVData structure.
From RHRV Quick Start Tutorial I know that "RHRV imports data files containing heart beats positions" so in worst case I can obtain time position of the heartbeat peaks - but still those will be vectors that I need to transform into HRVData somehow.