Skip to contents

Calculate team ratings from non-penalty goal difference per 90 and non-penalty expected goal difference per 90.

Usage

calculate_team_ratings(team_stats)

Arguments

team_stats

dataframe containing FBref standard team stats (created using worldfootballR::fb_season_team_stats() or following the same structure)

Value

returns a dataframe with four columns - team, npxgd90, npgd90, rating

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)
}