View source: R/fetch_xg_data.R
fetch_xg_data | R Documentation |
Scrapes xA and xG data for a given season from understat
fetch_xg_data(year = 2022, reduce = FALSE, check_data = FALSE)
year |
the season for which we want to scrape data from understat. |
reduce |
If TRUE, returns only select columns from the API for nicer display. If FALSE, will return all columns from the FPL API. |
check_data |
used for debugging only |
a data.frame of the full player xg data for the season.
df <- fetch_xg_data(year = 2022)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.