View source: R/compile_seg_effort.R
| compile_seg_effort | R Documentation |
Cleans up the output of get_efforts_list() into a dataframe
compile_seg_effort(x)
x |
A list object produced by |
Used internally in compile_seg_efforts. Can be used on the output of get_efforts_list to compile the segment efforts of a single segment. Each call to get_efforts_list returns a large list. This function returns a subset of this information.
A dataframe containing all of the efforts of a specific segment. The columns returned are athlete.id, distance, elapsed_time, moving_time, name, start_date and start_date_local.
Daniel Padfield
## Not run:
# set token
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))
# segments to get efforts from - use some parkruns
segment <- 2269028
# get segment efforts
efforts <- get_efforts_list(stoken, segment)
# compile efforts
efforts <- compile_seg_effort(efforts)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.