calculate_game_score_adjusted_team: Calculate team rating change from a game result

View source: R/game_scores.R

calculate_game_score_adjusted_teamR Documentation

Calculate team rating change from a game result

Description

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.

Usage

calculate_game_score_adjusted_team(
  winner_team,
  loser_team,
  winner_score,
  loser_score,
  league_type
)

Arguments

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.

Examples

calculate_game_score_adjusted_team("Virginia","Virginia Tech",13,6,league_type = "mens")

bbwieland/fRisbee documentation built on Aug. 30, 2022, 11:18 p.m.