get_performance_graphs: Makes a request against the...

Description Usage Arguments Examples

View source: R/queries.R

Description

For each workout, returns time series of individual workouts capturing cadence, output, resistance, speed, heart-rate (if applicable), measured at second intervals defined by every_n. A vectorized function, so accepts multiple workoutIDs at once.

Usage

1
2
3
4
5
6
7
get_performance_graphs(
  workout_ids,
  every_n = 5,
  dictionary = list(list = c("seconds_since_pedaling_start", "segment_list")),
  parse_dates = TRUE,
  ...
)

Arguments

workout_ids

WorkoutIDs

every_n

How often measurements are reported. If set to 1, there will be 60 data points per minute of a workout

dictionary

A named list. Maps a data-type to a column name. If NULL then no parsing is done

parse_dates

Whether to try and guess which columns are dates and convert

...

Other arguments passed on to methods

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
workouts <- get_all_workouts()
get_performance_graphs(workouts$id)
get_performance_graphs(workouts$id,
  dictionary =
    list("list" = c("seconds_since_pedaling_start", "segment_list"))
)

## End(Not run)

bweiher/pelotonR documentation built on Jan. 9, 2021, 1:36 a.m.