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)

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)

fawda123/rStrava documentation built on March 27, 2024, 3:16 p.m.