https://github.com/alastairrushworth/tdf
🚴🏅📊Tour de France winners and stages data
https://github.com/alastairrushworth/tdf
data-science dataframe exploratory-data-analysis rstats tdf tour-de-france
Last synced: about 1 year ago
JSON representation
🚴🏅📊Tour de France winners and stages data
- Host: GitHub
- URL: https://github.com/alastairrushworth/tdf
- Owner: alastairrushworth
- Created: 2019-10-20T17:33:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T00:28:06.000Z (over 2 years ago)
- Last Synced: 2025-03-27T03:51:12.599Z (about 1 year ago)
- Topics: data-science, dataframe, exploratory-data-analysis, rstats, tdf, tour-de-france
- Language: R
- Homepage:
- Size: 4.1 MB
- Stars: 20
- Watchers: 1
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
fig.path = "man/figures/README-"
)
```
[](https://travis-ci.org/alastairrushworth/tdf)
[](https://codecov.io/gh/alastairrushworth/tdf)
# `tdf`
Installation
---
To install the package, use
```{r, eval = FALSE}
devtools::install_github("alastairrushworth/tdf")
```
Usage
---
Load the package and check out the help file
```{r, eval = FALSE}
library(tdf)
?editions
```
Quick summary of the columns and their contents
```r
tibble::glimpse(editions)
Observations: 106
Variables: 20
$ edition 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,…
$ start_date 1903-07-01, 1904-07-02, 1905-07-09, 1906-07-04, 1907-07-08, 1908-07-1…
$ winner_name "Maurice Garin", "Henri Cornet", "Louis Trousselier", "René Pottier", …
$ winner_team "La Française", "Conte", "Peugeot–Wolber", "Peugeot–Wolber", "Peugeot–…
$ distance 2428, 2428, 2994, 4637, 4488, 4497, 4498, 4734, 5343, 5289, 5287, 5380…
$ time_overall 94.55389, 96.09861, NA, NA, NA, NA, NA, NA, NA, NA, 197.90000, 200.480…
$ time_margin 2.98916667, 2.27055556, NA, NA, NA, NA, NA, NA, NA, NA, 0.13555556, 0.…
$ stage_wins 3, 1, 5, 5, 2, 5, 6, 4, 2, 3, 1, 1, 1, 4, 2, 0, 3, 4, 4, 2, 3, 5, 1, 2…
$ stages_led 6, 3, 10, 12, 5, 13, 13, 3, 13, 13, 8, 15, 2, 14, 14, 3, 6, 15, 13, 8,…
$ height 1.62, NA, NA, NA, NA, NA, 1.78, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
$ weight 60, NA, NA, NA, NA, NA, 88, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
$ age 32, 19, 24, 27, 24, 25, 22, 22, 26, 23, 23, 24, 33, 30, 33, 36, 34, 29…
$ born 1871-03-03, 1884-08-04, 1881-06-29, 1879-06-05, 1882-10-18, 1882-10-1…
$ died 1957-02-19, 1941-03-18, 1939-04-24, 1907-01-25, 1917-12-20, 1917-12-2…
$ full_name NA, NA, NA, NA, "Lucien Georges Mazan", "Lucien Georges Mazan", NA, NA…
$ nickname "The Little Chimney-sweep", "Le rigolo (The joker)", "Levaloy / Trou-t…
$ birth_town "Arvier", "Desvres", "Paris", "Moret-sur-Loing", "Plessé", "Plessé", "…
$ birth_country "Italy", "France", "France", "France", "France", "France", "France", "…
$ nationality " France", " France", " France", " France", " France", " France", " Lu…
$ stage_results [[, ,