Unified wrapper to fetch player stats from either Champion Data MC API (NRL/NRLW/State of Origin) or Rugby League Project web scraping.
fetch_player_stats(
season = NULL,
league = c("nrl", "super_league", "championship", "league_one", "womens_super_league",
"qld_cup", "nsw_cup"),
round = NULL,
comp = NULL,
source = c("championdata", "rugbyproject")
)A tibble of player stats joined with fixture info.
Integer scalar. Season year (rugbyproject only).
Character scalar. League name (rugbyproject only).
Integer scalar or NULL. Round number filter (both sources).
Integer. Competition ID (championdata only).
Character scalar. One of "championdata" or "rugbyproject". Default is "championdata".
For `source = "championdata"`, provide `comp` (competition ID). `round` is optional. For `source = "rugbyproject"`, provide `season`, `league`, and optionally `round`.