calculate_rank: Calculate Rankings

Description Usage Arguments

View source: R/calculus.R

Description

Calculate rankings based on a match between two teams, the score, home advantage and whether or not the match took place in a World Cup.

Usage

1
2
3
4
5
6
calculate_rank(
  home_team = NULL,
  away_team = NULL,
  score = c(0, 0),
  world_cup = FALSE
)

Arguments

home_team

Character vector of home team name. For a list of valid teams, see teams().

away_team

Character vector of away team name.

score

Two-element numeric vector of scores.

world_cup

Whether the match took place in the Rugby World Cup or not.


RobertMyles/rugger documentation built on Jan. 13, 2020, 11:33 a.m.