SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Analyse only part of imported file without using episodes [ Reply ]
By: Philippe LIEGE on 2024-04-24 15:03
[forum:49883]
Moritz,

The rsleep package contains a Pan-Tompkins implementation. You can give it a try using an ECG recording from a Polar device (a few android/apple apps can be used to log these data for you).

The qrs detectors recommended in the RHRV manual all work fine, but it is difficult to get their associated graphic device working on recent linux versions.

The Pan-Tompkins implementation in EDFbrowser which has been validated against several datasets is one of the most convenient options.

For my own use, I developed an implementation for R of the two-moving average algorithm by Mohamed Elgendi.

https://github.com/liegepr/Two_moving_average_qrs_detector

RE: Analyse only part of imported file without using episodes [ Reply ]
By: Moritz Bo on 2024-04-23 10:16
[forum:49875]
Hey Philippe,
Thank you a lot for your help.
I changed my script in the way you proposed and it works.
Kind regards,
Moritz

RE: Analyse only part of imported file without using episodes [ Reply ]
By: Philippe LIEGE on 2024-04-22 13:36
[forum:49872]
Hi Moritz,

I did something similar two years ago. As far back I can remember, RHRV provides no R function for building HRV a dataset from a data.frame object. So after splitting the data into separate data. frame objects, I have been exporting them to a txt file that can be imported into RHRV and taking care of timestamp unit and origin, colums names, etc. As the original datasets commonly contain thousands or rows, one may prefer data.table for subsetting the data and also for importing (fread()) and writing them (fwrite()) so as to speed up the pre-processing procedure.
The above can also be used when you are submitting the Polar ECG signal to qrs detection within R or using an external software application.
Philippe

Analyse only part of imported file without using episodes [ Reply ]
By: Moritz Bo on 2024-04-20 19:39
[forum:49868]
Hey,
I have R-R Data as .txt (from Polar device) and I would like to analyse diffetent time episodes seperately. And using episodes didn't work so far...


Can I split a HRVData in 2 HRVData with different time episodes?
Or..
Is it possible to get R-R data from a dataframe into a HRVData? So I could import the .txt to a dataframe, seperate the episodes in diffetent dataframes and make a HRVData out of each dataframe.


I tried to use AddEpisodes(), but I cannot do Time Analysis on the episodes seperately.
-If I seperate the episodes with SplitHRbyEpisodes, I cannot use CreateTimeAnalysis (Error: "Error in if (verbose) { : argument is of length zero")
-I can not find the function CreateTimeAnalysisByEpisodes (mentioned in this forum) (Error Message: "cannot open file 'CreateTimeAnalysisByEpisodes.R': No such file or directory")

I appreciate your help!

Thanks to:
Vienna University of Economics and Business Powered By FusionForge