https://github.com/torvaney/footballdatr
A minimal R package to fetch data from football-data.co.uk
https://github.com/torvaney/footballdatr
data football-data soccer
Last synced: 5 months ago
JSON representation
A minimal R package to fetch data from football-data.co.uk
- Host: GitHub
- URL: https://github.com/torvaney/footballdatr
- Owner: Torvaney
- License: other
- Created: 2018-12-28T09:03:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-13T10:35:10.000Z (over 4 years ago)
- Last Synced: 2025-04-06T17:11:18.793Z (6 months ago)
- Topics: data, football-data, soccer
- Language: R
- Homepage:
- Size: 9.77 KB
- Stars: 23
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output:
github_document:
html_preview: false
---```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# footballdatr
The goal of footballdatr is to enable easy use of football-data.co.uk data within R.
## Installation
You can install the footballdatr from Github with:
``` r
devtools::install_github("torvaney/footballdatr")
```## Example
To download Premier League data for the 2018/19 season:
```{r example}
footballdatr::fetch_data(
"England", # Country
0, # Division tier (0 = highest)
2018 # Season (start year)
)
```To view the available competitions
```{r}
footballdatr::ls_countries()
```