load_fb_advanced_match_stats: Load pre-saved FBref match advanced stats

View source: R/load_fb.R

load_fb_advanced_match_statsR Documentation

Load pre-saved FBref match advanced stats

Description

Loading version of fb_advanced_match_stats. Only some leagues available.

Usage

load_fb_advanced_match_stats(
  country,
  gender,
  tier,
  stat_type,
  team_or_player,
  season_end_year = NA
)

Arguments

country

the three character country code

gender

gender of competition, either "M" or "F"

tier

the tier of the league, ie '1st' for the EPL or '2nd' for the Championship and so on

stat_type

the type of team statistics the user requires

team_or_player

result either summarised for each team, or individual players

season_end_year

the year(s) the season concludes

Value

returns a dataframe

Examples


try({
load_fb_advanced_match_stats(
  country = "ENG",
  gender = "M",
  tier = "1st",
  stat_type = "summary",
  team_or_player = "player"
)

load_fb_advanced_match_stats(
  country = c("ITA", "ESP"),
  gender = "M",
  tier = "1st",
  season_end_year = 2023,
  stat_type = "defense",
  team_or_player = "player"
)
})


JaseZiv/worldfootballR documentation built on April 5, 2025, 5:06 p.m.