retrieveAllActivityStreamsIntoDf: Retrieve All Activity Streams Into Data Frame

Description Usage Arguments Value Examples

View source: R/retrieve.R

Description

Reads through an activity data frame, making a request to API for each activity id, and combines it into a tidy data frame with a unique record for each observation and activity id.

Usage

1

Arguments

token

String value for user access token to API

activity_df

A dataframe object with all available fields

Value

data A dataframe object with all available fields, stacking by activity id

Examples

1
2
3
4
token <- readToken('path/to/token.txt')
activity_response <- retrieveAthleteActivities(token)
activity_df <- parseAthleteActivities(activity_response)
activity_stream_df <- retrieveAllActivityStreamsIntoDf(token, activity_df)

jarrodolson/StravaR documentation built on May 18, 2019, 4:48 p.m.