getTeamRankings: Get Team Iterative Rankings

View source: R/dc_iterative.R

getTeamRankingsR Documentation

Get Team Iterative Rankings

Description

Gets a team's attack and defense ratings for iterative dixon-coles techniques. If a team hasn't been sampled before in this given rankings data set, attack and defense values of 0 are returned, and the team added to the rankings data frame. The rankings data frame is always returned as well, it's good tocapture that in case the team is new.

Usage

getTeamRankings(team, rankings)

Arguments

team

Team name

rankings

rankings data frame

Value

attack & defence ratings, plust the rankings data frame again (in case a team is added with attack & defense of 0)


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.