JaseZiv / worldfootballR

A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat
https://jaseziv.github.io/worldfootballR/
444 stars 60 forks source link

Stat types not available in `fotmob_get_season_stats()` #118

Closed JaseZiv closed 2 years ago

JaseZiv commented 2 years ago

fotmob_get_season_stats() no longer supports 'Expected Goals' as a metric for the EPL

@tonyelhabr

epl_team_xg_2021 <- fotmob_get_season_stats(
  country = "ENG",
  league_name = "Premier League",
  season_name = "2020/2021",
  stat_name = "Expected Goals",
  team_or_player = "team"
)

Error in g(..1, ..2, ..3) : 
  `"Expected Goals"` is not a valid `stat_name` for `league_name = "Premier League"` (`league_id = 47`). Try one of the following:
Accurate crosses per match
Accurate long balls per match
Accurate passes per match
Average possession
Big chances created
Big chances missed
Clean sheets
Clearances per match
Expected goals
FotMob rating
Fouls per match
Goals conceded per match
Goals per match
Interceptions per match
Penalties awarded
Penalties conceded
Possession won final 3rd per match
Red cards
Saves per match
Shots on target per match
Successful tackles per match
xG conceded
Yellow cards
tonyelhabr commented 2 years ago

oh looks like they just lower-cased the "Goals" to "goals". this will require changes to tests and docs, but nothing in the function

JaseZiv commented 2 years ago

Ok too easy, I’ll sort this out. Thanks heaps!