Forum: help


RE: Unable to load .csv file [ Reply ] By: Philippe LIEGE on 2024-04-26 13:04 | [forum:49888] |
Hi Laura, LoadBeatVector() is expecting beat positions, not HR data. Beat positions may be derived from column "DeltaRR_ms". See help(cumsum). Philippe |
Unable to load .csv file [ Reply ] By: Laura Rial on 2024-04-03 12:30 | [forum:49849]![]() |
Hi! I'm trying to use RHRV to analyse HR and deltaR-R data. Data is register using PolarH10 on the patient and transmited to the a mobile app (HR Monitor). This app creates a .csv file containing 3 columns: time (one line per second), Heart rate and delta R-R. I wasn't able to load the data following the instructions on the tutorials, quick guidelines, etc. I tried the functions "LoadBeats" and "LoadBeatsPolar". Then, I tried to use "LoadBeatsVector" transforming .csv into .txt, which seemed to work. However, this code removes alleged duplicates. So I think it doesn't really consider that each HR or delta R-R value belongs to a specific second (therefore, is not duplicated). > rrTable = read.table('prueba.txt') > colnames(rrTable) = c("Scale", "HR","rr") > rrTable2 = rrTable$HR > # Create the HRVData structure > hrd = CreateHRVData() > # Load the beats from a vector > hrd = LoadBeatVector(hrd, beatPositions = rrTable2, scale = 1, datetime = "1/1/1900 0:0:0") Warning message: In LoadBeatVector(hrd, beatPositions = rrTable2, scale = 1, datetime = "1/1/1900 0:0:0") : Removed 886 duplicated beat positions I'm attaching an example of my raw data, hopefully someone can advise on how to best upload it. Kind regards, Laura. |