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
Examples
# \donttest{
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"
)
})
#> → Data last updated 2025-04-05 23:36:13.824254989624 UTC
#> Error in dplyr::bind_rows(res, .id = .id) :
#> Can't combine `..1$Home_Score` <character> and `..2$Home_Score` <double>.
# }