get_power_data: Returns power data from every training within a period....

Description Usage Details Value Author(s) Examples

View source: R/get_power_data.R

Description

A function to get all power data from every training session throughout a selected period. It only works on Golden Cheetah.

Usage

1

Details

It will run on selection under the tab "Trends".

Value

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.

Author(s)

Natan Freitas Leite.

Examples

 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))
  }

Bolshom/optimumtt documentation built on May 24, 2019, 8:56 a.m.