Learn R Programming

bracketeer (version 0.1.1)

winner: Get tournament winner

Description

Get tournament winner

Usage

winner(tournament)

Value

Winner name or NA_character_.

Arguments

tournament

A tournament object.

Examples

Run this code
teams <- c("A", "B", "C", "D")
trn <- tournament(teams) |>
  round_robin("groups") |>
  single_elim("finals", take = top_n(2))

# ... enter all results ...

# Get the champion
winner(trn)

Run the code above in your browser using DataLab