Get season team statistics from RealGM.
Requires a headless browser (see realgm_players()).
Usage
realgm_team_stats(
season = most_recent_nba_season(),
stat_type = "Averages",
season_type = "Regular_Season"
)Arguments
- season
Season (the year the season ends, e.g.
2026). Defaults tomost_recent_nba_season().- stat_type
Statistic family. One of
"Averages"(default),"Totals","Advanced_Stats"or"Misc_Stats".- season_type
Season segment. One of
"Regular_Season"(default),"Playoffs","Preseason"or"Summer_League".
Value
A hoopR_data tibble (one row per team) carrying the requested
season, stat_type and season_type as columns. Columns vary by
stat_type; for "Averages": team, gp, mpg, ppg, rpg, apg, etc.
See also
Other RealGM Functions:
realgm_coaches(),
realgm_draft(),
realgm_draft_prospects(),
realgm_early_entry(),
realgm_future_free_agents(),
realgm_gms(),
realgm_individual_games(),
realgm_individual_seasons(),
realgm_player_stats(),
realgm_players(),
realgm_players_abroad(),
realgm_rookie_scale(),
realgm_salary_cap(),
realgm_standings(),
realgm_teams(),
realgm_transactions()
Examples
if (FALSE) { # \dontrun{
try(realgm_team_stats(season = 2025, stat_type = "Averages"))
} # }
