Skip to content

R package containing data relating to London Marathon.

License

Notifications You must be signed in to change notification settings

nrennie/LondonMarathon

Repository files navigation

R-CMD-check

LondonMarathon

An R package containing two data sets scraped from Wikipedia (1 November 2022) on London Marathon winners, and general data. The two data sets can be joined by Year.

Installation

Install using:

remotes::install_github("nrennie/LondonMarathon")

Load the data sets with:

data(winners, package = "LondonMarathon")
data(london_marathon, package = "LondonMarathon")

Data dictionaries

winners

Column Class Description Example
Category character Category of race Men
Year integer Year 1981
Athlete character Name of the winner Dick Beardsley (Tie)
Nationality character Nationality of the winner United States
Time character Winning time 02:11:48

london_marathon

Column Class Description Example
Date character Date of the race 1981-03-29
Year integer Year 1981
Applicants integer Number of people who applied 20000
Accepted integer Number of people accepted 7747
Starters integer Number of people who started 7055
Finishers integer Number of people who finished 6255
Raised integer Amount raised for charity (£ millions) 46.5
Official.charity character Official charity SportsAid

At the time of last update (24/04/2023), wheelchair men and wheelchair women winners data was missing for 2022 and 2023.

Plots

See the code in inst/plots.R to create these example plots.

Hex Sticker

The background photo in the hex sticker is from Benjamin Davies on Unsplash.

About

R package containing data relating to London Marathon.

Topics

Resources

License

Stars

Watchers

Forks

Languages