PELOTON ANALYSIS
During the earlier days of the pandemic, circa late 2020, I was desperate to get back into my active lifestyle. I had canceled my gym memberships (most places were shutting down) and lost all motivation to adapt my fitness routine. After months of succumbing to an inactive slump, I decided to get back into the swing of working out. Which prompted me to download the Peloton app (what was all the fuss about Peloton anyways?). In no time, I fell in love with their classes and instructors. I was officially back and Peloton was holding me accountable!
Fast forward to today, it’s been nearly two years and I’m still going strong. I’m now a proud owner of the Peloton Bike, and I ride at least 100 miles a month. Part of what makes Peloton so sticky is the visibility of one’s workout metrics - # classes, hours, calories. Which got me thinking - why not use my own data to do something cool?
DATA COLLECTION
My first question was “how can I get my Peloton data?” After some Googling I noticed Peloton has their own API that lets users tap into their own personal workout data (authentication only requires a Peloton username and password). And to my delight, I also found out someone had developed an API wrapper in R to make the wrangling process 10x easier! Special thank you to Laura Ellis, genius creator of pelotonR - this package did a lot of the heavy lifting!