SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Failing to fill hrv.data with .beats file [ Reply ]
By: David Plans on 2017-11-15 14:20
[forum:45460]
Hey Antonio

You're exactly right. saveRDS created a binary file. write.table worked much better.

Using:

write.table(df,file="temp3.beats",col.names=FALSE,row.names=FALSE,quote=FALSE)

worked fine.

Thanks!

RE: Failing to fill hrv.data with .beats file [ Reply ]
By: Constantino Antonio on 2017-11-14 15:59
[forum:45458]
Dear David,

Despite of the ascii flag, i guess that saveRDS is creating a binary file for storing the beats. Try to use some functions intended to work with tsv and csv files like write.csv and write.table.

Kind regards!

Failing to fill hrv.data with .beats file [ Reply ]
By: David Plans on 2017-11-14 10:42
[forum:45457]

temp.beats (8) downloads
Hello! Thanks for RHRV!

I'm following the tutorial, and I've so far created the data structure:
hrv.data = CreateHRVData()
hrv.data = SetVerbose(hrv.data, TRUE)

I have an ascii file with all RR intervals in single column, which I created from a dataframe holding same intervals using 'saveRDS(df, "temp.beats", ascii = TRUE)'.

I'm trying to load this file following the tutorial, using 'hrv.data = LoadBeatAscii(hrv.data, "temp.beats", RecordPath = ".")' but I'm getting:

'Error in HRVData$Verbose : object of type 'closure' is not subsettable'

Any ideas?

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