View source: R/compile_activities.R
compile_activities | R Documentation |
converts a list of activities into a dataframe
compile_activities(actlist, acts = NULL, id = NULL, units = "metric")
actlist |
an activities list returned by |
acts |
numeric indicating which activities to compile starting with most recent, defaults to all |
id |
optional character vector to specify the id(s) of the activity/activities to plot, |
units |
chr string indicating metric or imperial |
each activity has a value for every column present across all activities, with NAs populating empty values
An activities frame object (actframe
that includes a data frame for the data and attributes for the distance, speed, and elevation units
Daniel Padfield
compile_club_activities
for compiling an activities list for club activities
## Not run:
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))
my_acts <- get_activity_list(stoken)
acts_data <- compile_activities(my_acts)
# show attributes
attr(acts_data, 'unit_type')
attr(acts_data, 'unit_vals')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.