View source: R/compile_seg_efforts.R
compile_seg_efforts | R Documentation |
Compiles the information of athletes from multiple segments
compile_seg_efforts(segment_ids, stoken)
segment_ids |
A vector of segment ids from which to compile efforts |
stoken |
A |
Uses get_elev_prof
and compile_seg_effort
internally to compile efforts of multiple segments
A dataframe of the details of each segment effort
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
segments <- c(2269028, 5954625)
# compile segment efforts
segments %>% purrr::map_df(., .f = compile_seg_efforts, stoken = my_token, .id = 'id')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.