Learn R Programming

bracketeer (version 0.1.1)

matches: Inspect tournament matches

Description

Inspect tournament matches

Usage

matches(x, stage = NULL, status = "pending")

# S3 method for tournament matches(x, stage = NULL, status = "pending")

Value

Data frame of matches.

Arguments

x

A tournament object.

stage

Optional stage identifier.

status

One of "pending", "complete", or "all".

Examples

Run this code
trn <- tournament(c("A", "B", "C", "D")) |>
  round_robin("groups")

# Get pending matches
matches(trn, "groups")

# Get all matches across stages
matches(trn, status = "all")

Run the code above in your browser using DataLab