https://github.com/nrennie/londonmarathon
R package containing data relating to London Marathon.
https://github.com/nrennie/londonmarathon
data r r-package
Last synced: about 1 year ago
JSON representation
R package containing data relating to London Marathon.
- Host: GitHub
- URL: https://github.com/nrennie/londonmarathon
- Owner: nrennie
- License: cc0-1.0
- Created: 2022-11-01T15:22:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T15:36:44.000Z (about 3 years ago)
- Last Synced: 2025-02-08T08:23:06.919Z (over 1 year ago)
- Topics: data, r, r-package
- Language: R
- Homepage:
- Size: 682 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/nrennie/LondonMarathon/actions)
# 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](https://unsplash.com/@bendavisual) on [Unsplash](https://unsplash.com/photos/Oja2ty_9ZLM).