realgm_team_stats: *RealGM NBA Team Stats*

View source: R/realgm_stats.R

realgm_team_statsR Documentation

RealGM NBA Team Stats

Description

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 to most_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

## Not run: 
  try(realgm_team_stats(season = 2025, stat_type = "Averages"))

## End(Not run)

hoopR documentation built on Aug. 25, 2026, 9:07 a.m.