XData in R Charts: only one value per second (XData with more data points per second incomplete in R)

220 views
Skip to first unread message

Stefan Rothbauer

unread,
Dec 5, 2017, 4:14:52 AM12/5/17
to golden-cheetah-users
Hello,

When I try to access XData in R Charts, for example looking at HRV data (RR intervals) I do the following:

act <- GC.activity(compare=FALSE)

rr <- act$"HRV_R-R"


When I then look at the rr vector, it only contains one value per second.

In the Edit Pane of the activities view, I see that often there are more values per second (as is expected with heart rate above 60 beats per minute).


It seems to me, that in the data frame returned by GC.activity() always the first RR-Value that occured in the particular second is chosen.


When the XData contains more than one data point per second, this is not accessible in this way with R.
Maybe XData for an activity have to be returned in a different format, as data frames in R assume same length for each variable.

I could not find more information in the User Guide "working with R", but maybe there is additional documentation regarding my question?

Best,

Stefan



Mark Liversedge

unread,
Dec 6, 2017, 2:28:29 AM12/6/17
to golden-cheetah-users
When retrieving data in an activity all data is resampled to the recording interval of the main data.
I'm not sure if there is a way to get at the raw HRV data in R.

Mark

Mark Liversedge

unread,
Dec 6, 2017, 2:36:59 AM12/6/17
to golden-cheetah-users
No, its not possible. I'll look to add GC.activity.xdata() as a function to access it raw.

Mark

Stefan Rothbauer

unread,
Dec 10, 2017, 6:47:13 AM12/10/17
to golden-cheetah-users
Thanks!

Stefan

Stefan Rothbauer

unread,
Feb 18, 2018, 9:32:43 AM2/18/18
to golden-cheetah-users
Hi Marc

should the function GC.activity.xdata() be part of the 1802-Dev build? It does not seem to exist on my installation (windows)

Best,

Stefan

Am Mittwoch, 6. Dezember 2017 08:36:59 UTC+1 schrieb Mark Liversedge:

Stefan Rothbauer

unread,
Mar 28, 2018, 2:02:51 AM3/28/18
to golden-cheetah-users
Just wondering, if the GC.activity.xdata() function will be part of the next GC release?

This would be nice!

Stefan

Ale Martinez

unread,
Jul 3, 2018, 4:33:39 PM7/3/18
to golden-cheetah-users

Stefan Rothbauer

unread,
Jul 4, 2018, 5:10:02 AM7/4/18
to golden-cheetah-users
Yes, Thanks a lot, works as desired!
I needed it for the HRV-data.

Best,

Stefan
Reply all
Reply to author
Forward
0 new messages