parseAthleteStats: Parse Athlete Stats

Description Usage Arguments Value Examples

View source: R/parsing.R

Description

Parses a given athletes stats, returning as a data frame. Note that the max_distance and max_climb are global, so they would take the maximum of ride, run, or swim.

Usage

1
parseAthleteStats(response, athlete_id)

Arguments

response

An httr response object from an authenticated call to Strava JSON API

athlete_id

Athlete ID for user of interest

Value

out A data frame with one row per statistic reported with features from json object

Examples

1
2
3
4
##Not a real token
## Not run: me <- retrieveAthlete('abcdefghijk')
## Not run: me_stats <- retrieveAthleteStats('abcdefghijk', me$id[1])
## Not run: my_stats_df <- parseAthleteStats(me_stats, me$id[1])

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