Today I will continue looking at Strava data (see my previous post: https://www.andrewaage.com/post/analyzing-strava-data-using-r/).
This time, the goal is to create a Poisson-model to determine how to become popular on Strava, answering vital questions such as:
What time of the day should I post my training rides? What is more important, distance or speed? Should I include pictures on my activity? Which day of the week should I ride?
Today I will look at how to connect to the Strava-API and do some quick analysis on the activity data.
To start using the Strava-API, start by registering a developer app at strava.com. After doing this, you will get your API credentials, including your personal secret and client id. Here, I have added my secret to keyring using key_set before fetching it in the code below.