calculate_game_score_adjusted_team | R Documentation |
This function calculates game score using the USA Ultimate Rankings Algorithm. Then, it determines the ratings changes as a result of that game outcome. Unlike its counterpart, calculate_game_score_adjusted, it takes team names — not ratings — as inputs. Then, it pulls that team's most updated rating from the rankings site and calculates the results. Returns a dataframe with information.
calculate_game_score_adjusted_team( winner_team, loser_team, winner_score, loser_score, league_type )
winner_team |
The name of the winning team. |
loser_team |
The name of the losing team. |
winner_score |
The score of the winning team. |
loser_score |
The score of the losing team. |
league_type |
The league type of the game. Should be equal to "mens" for men's games and "womens" for women's games. Other values will return an error. |
calculate_game_score_adjusted_team("Virginia","Virginia Tech",13,6,league_type = "mens")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.