compile_activity_streams {rStrava} | R 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 |
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)
[Package rStrava version 1.3.1 Index]