Description Usage Details Value Author(s) Examples
View source: R/get_power_data.R
A function to get all power data from every training session throughout a selected period. It only works on Golden Cheetah.
1 |
It will run on selection under the tab "Trends".
dates_list_updt |
A vector containing all dates and times from every training session. |
power_list_updt |
A list containing power data inside of vectors, from all activities on a selected period. |
Natan Freitas Leite.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## The function is currently defined as
function ()
{
metrics = GC.season.metrics()
metrics = subset(metrics, !Average_Power == 0)
rownames(metrics) = 1:dim(metrics)[1]
dates_list_updt = metrics$time
power_list_updt = list()
for (i in 1:length(dates_list_updt)) {
power_list_updt[[i]] = GC.activity(activity = dates_list_updt[i])[[1]]$power
}
return(list(dates_list_updt, power_list_updt))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.