Skip to contents

Side-by-side comparison of multiple players.

Usage

compare_players(players, year = NULL, file_path = NULL, data = NULL)

Arguments

players

Vector of player names

year

Optional year filter

file_path

Path to data file (.rds or .parquet)

data

Optional leaderboard data frame. Use this instead of `file_path` when the data is already in memory.

Value

Tibble comparing player statistics

Examples

if (FALSE) { # \dontrun{
season <- load_leaderboard(2025)
compare_players(c("Scheffler", "McIlroy"), data = season)
} # }