View source: R/compile_activity_streams.R
compile_activity_streams | R Documentation |
Convert a set of streams of a single activity into a dataframe, with the retrieved columns.
compile_activity_streams(streams, id = NULL)
streams |
a list containing details of the Strava streams of a single activity (output of |
id |
if not missing, the activity id of the stream (will be appended to the data.frame, if non-empty), as character vector |
used internally in get_activity_streams
data frame where every column is the stream data for the retrieved types.
Lorenzo Gaborini
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.