knitr::opts_chunk$set(echo = TRUE, collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "75%")
An R package to help with retrieving tidy understat data.
understatr
is not likely to be submitted to CRAN. Get the latest development version from GitHub:
remotes::install_github('ewenme/understatr')
library(understatr)
get_leagues_meta()
get_team_players_stats(team_name = "Manchester City", year = 2018)
get_player_seasons_stats(player_id = 618)
If you encounter a clear bug, please file a minimal reproducible example on GitHub. For questions and other discussion, try stackoverflow or e-mail.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.