fetch_xg_data: Fetch xG and xA data from understat

View source: R/fetch_xg_data.R

fetch_xg_dataR Documentation

Fetch xG and xA data from understat

Description

Scrapes xA and xG data for a given season from understat

Usage

fetch_xg_data(year = 2022, reduce = FALSE, check_data = FALSE)

Arguments

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

Value

a data.frame of the full player xg data for the season.

Examples

df <- fetch_xg_data(year = 2022)



Chrisjb/fploptimiser documentation built on Sept. 14, 2022, 8:50 a.m.