knitr::opts_chunk$set(echo = TRUE, collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "75%")

understatr

lifecycle R-CMD-check

Overview

An R package to help with retrieving tidy understat data.

Install

understatr is not likely to be submitted to CRAN. Get the latest development version from GitHub:

remotes::install_github('ewenme/understatr')

Use

library(understatr)

Check currently available leagues/seasons:

get_leagues_meta()

Get stats for a team's playing squad in a league season:

get_team_players_stats(team_name = "Manchester City", year = 2018)

Get stats for a player across all seasons:

get_player_seasons_stats(player_id = 618)

Issues

If you encounter a clear bug, please file a minimal reproducible example on GitHub. For questions and other discussion, try stackoverflow or e-mail.

Disclaimer

While there is no official notice on the site condoning web scraping activity, Understat's support have previously confirmed (via e-mail exchange, 8th November 2018) that their data is free to use for non-commercial purposes. This stance is subject to change.

Also, be polite and attribute the source.


Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



ewenme/understatr documentation built on Sept. 6, 2021, 7:57 a.m.