Forum: open-discussion
Monitor Forum | Start New ThreadRE: Load data with LoadBeatVector.R function Errors [ Reply ] By: florian chmetz on 2016-03-22 15:42 | [forum:43074] |
Dear Antonio, It works perfectly! Thank you very much! |
RE: Load data with LoadBeatVector.R function Errors [ Reply ] By: Constantino Antonio on 2016-03-22 12:43 | [forum:43073] |
Dear Florian, There was a bug in our function. You have to remove the line cat(" Path:", RecordPath, "\n") and it should work properly with your second approach. Note that the RecordPath variable didn't exist and that's why you were getting the error "objet 'RecordPath' introuvable". Kind Regards |
Load data with LoadBeatVector.R function Errors [ Reply ] By: florian chmetz on 2016-03-22 11:48 | [forum:43072] |
Hi, I was searching a solution to load R data into hrv.data and so I load the LoadBeatVector.R in the forum. However, the following code : source("LoadBeatVector.R") hrvd <- FC_01_qrs_RR$time hrv.data = CreateHRVData() hrv.data = SetVerbose(hrv.data, TRUE) hrv.data = LoadBeatVector(HRVData = hrvd, scale = 1, datetime = "1/1/1900 0:0:0") return the following error: Error in HRVData$Verbose : $ operator is invalid for atomic vectors And the following code : hrv.data = CreateHRVData() hrv.data = SetVerbose(hrv.data, TRUE) hrv.data = LoadBeatVector(HRVData = hrv.data, beats = hrvd, scale = 1, datetime = "1/1/1900 0:0:0") return the following error: ** Loading beats positions ** Error in cat(" Path:", RecordPath, "\n") : objet 'RecordPath' introuvable My data is vector of class numeric. Is there a bug or m'I using the LoadBeatVector function wrongly? Many thanks! Florian |