View source: R/get_spdsplits.R
get_spdsplits | R Documentation |
Allows the return of speed splits of multiple rides.
get_spdsplits(act_id, stoken, units = "metric")
act_id |
a vector of activity IDs. These are easily found in the |
stoken |
A |
units |
chr string indicating plot units as either metric or imperial |
a data frame containing the splits of the activity or activities selected.
Marcus Beck
## Not run:
# get my activities
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))
my_acts <- get_activity_list(stoken)
# compile activities
acts_data <- compile_activities(my_acts)
# get spdsplits for all activities
spd_splits <- purrr::map_df(acts_data$id, get_spdsplits, stoken = stoken,
units = 'metric', .id = 'id')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.