Pledging My Time V: analysing race results in R
Posted on September 12, 2022 by quantixed in R bloggers | 0 Comments
[This article was first published on Rstats – quantixed , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here )
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Share Tweet
It’s been a while since I posted a breakdown of half marathon times. The last time seems to have been 2018 . I decided to give my old code a clean-up and quickly crunched the numbers from the 2022 Kenilworth Half Marathon.
First, the results:
Briefly, the code below reads in a csv file of race results downloaded from the provider. A little bit of wrangling is required to make them plotting-friendly and then six ggplots can be made to look at pace, time and speed; with a breakdown down by category or by gender. OK, everyone runs the same distance on the same course, so speed, pace and time are three ways of looking at the same thing… how fast everyone ran the race.
require(tidyverse) require(ggbeeswarm) file_name