compile_seg_efforts: Compile the efforts of multiple segments

View source: R/compile_seg_efforts.R

compile_seg_effortsR Documentation

Compile the efforts of multiple segments

Description

Compiles the information of athletes from multiple segments

Usage

compile_seg_efforts(segment_ids, stoken)

Arguments

segment_ids

A vector of segment ids from which to compile efforts

stoken

A config object created using the strava_oauth function

Details

Uses get_elev_prof and compile_seg_effort internally to compile efforts of multiple segments

Value

A dataframe of the details of each segment effort

Author(s)

Daniel Padfield

Examples

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

rStrava documentation built on Oct. 23, 2024, 5:06 p.m.