An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

[![R-CMD-check](https://github.com/nrennie/LondonMarathon/workflows/R-CMD-check/badge.svg)](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).