compile_seg_effort {rStrava}R Documentation

Compile the efforts of a segment

Description

Cleans up the output of get_efforts_list() into a dataframe

Usage

compile_seg_effort(x)

Arguments

x

A list object produced by get_efforts_list

Details

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.

Value

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.

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
segment <- 2269028

# get segment efforts
efforts <- get_efforts_list(stoken, segment)

# compile efforts
efforts <- compile_seg_effort(efforts)

## End(Not run)

[Package rStrava version 1.3.1 Index]