compile_activity_streams: Convert a set of streams of a single activity into a...

View source: R/compile_activity_streams.R

compile_activity_streamsR Documentation

Convert a set of streams of a single activity into a dataframe

Description

Convert a set of streams of a single activity into a dataframe, with the retrieved columns.

Usage

compile_activity_streams(streams, id = NULL)

Arguments

streams

a list containing details of the Strava streams of a single activity (output of get_streams)

id

if not missing, the activity id of the stream (will be appended to the data.frame, if non-empty), as character vector

Details

used internally in get_activity_streams

Value

data frame where every column is the stream data for the retrieved types.

Author(s)

Lorenzo Gaborini

Examples

## Not run: 
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))

act_id <- '351217692'
streams <- get_streams(stoken, id = act_id, types = list('distance', 'latlng'))

compile_activity_streams(streams, id = act_id)
## End(Not run)

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