Calculate team ratings
calculate_team_ratings.Rd
Calculate team ratings from non-penalty goal difference per 90 and non-penalty expected goal difference per 90.
Arguments
- team_stats
dataframe containing FBref standard team stats (created using
worldfootballR::fb_season_team_stats()
or following the same structure)
Examples
if (FALSE) {
team_stats <-
worldfootballR::fb_season_team_stats(
country = "ENG", gender = "M", season_end_year = 2024,
stat_type = "standard", tier = "1st"
)
calculate_team_ratings(team_stats)
}