roundrobin | R Documentation |
Generates round-robin schedules for a certain number of teams and rounds.
roundrobin(teams, rounds = teams - (teams %% 2 == 0),
method = c("yahoo", "loop", "recursive"))
teams |
integer (length 1 vector). The number of teams to generate a schedule for. |
rounds |
integer (length 1 vector). The number of rounds to generate a schedule for. Defaults to |
method |
character (length 1 vector). See details. |
Method "yahoo"
uses the same format Yahoo! uses for its fantasy sports applications.
Method "loop"
uses a simple algorithm found on Wikipedia.
Method "recursive"
is for tournaments with teams = 2 ** k
.
Integer matrix with each column corresponding to a team and each row corresponding to the other teams that teams play for the round. NA
represents a BYE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.