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

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

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()
```