ladders calculates ladder positions at the end of a match.

ladders(df, round_num = NULL, game_num = NULL, old_system = FALSE)

matchResults(df)

Arguments

df

Data frame containing season match statistics.

round_num

Round at which to calculate ladder positions. Optional.

game_num

Game at which to calculate ladder positions. Optional.

old_system

Logical. Whether to sort by the old scoring system (defaults to FALSE).

Value

Data frame containing the ladder position of all teams. If round and game are not supplied, the ladder position is calculated using all match data present in the df supplied.