Skip to contents

Loads season-level NBA coaching staff data scraped from the NBA Stats API. One row per coach-team-season triple. Backed by the hoopR-nba-stats-data pipeline that reads raw JSONs from hoopR-nba-stats-raw and publishes csv/parquet/rds artifacts to the nba_stats_coaches release tag.

Loads season-level NBA draft picks scraped from the NBA Stats API (drafthistory-style outputs). One row per pick. Backed by the hoopR-nba-stats-data pipeline that reads raw JSONs from hoopR-nba-stats-raw and publishes csv/parquet/rds artifacts to the nba_stats_draft release tag.

Loads the per-event 10-man on-court lineup (5 home + 5 away) scraped alongside the NBA Stats API play-by-play feed. One row per play-by-play action, with each player slot's NBA Stats person id. Backed by the hoopR-nba-stats-data pipeline that publishes csv.gz/parquet/rds artifacts to the nba_stats_game_lineups release tag.

Loads the per-game inactive player list scraped from the NBA Stats API – the InactivePlayers result set of boxscoresummaryv2. One row per inactive athlete-game pair, not a full per-game roster: use load_nba_stats_player_game_logs() for the athletes who did play. Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_game_rosters release tag.

Loads season-level 5-man on-court lineup statistics (leaguedashlineups-style outputs, Base measure). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_lineups release tag. For Advanced/Misc/Scoring/ Opponent/Four Factors measures and 2/3/4-man groupings, use load_nba_stats_leaguedash() with table = "lineups_*".

Loads game-level officials data scraped from the NBA Stats API (boxscoresummaryv2-style outputs). One row per official-game pair. Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_officials release tag.

Loads season-level NBA play-by-play scraped from the NBA Stats API modern game-feed. One row per play-by-play action, with shot location, on/off-court lineup joins available via load_nba_stats_game_lineups(). Backed by the hoopR-nba-stats-data pipeline that publishes csv.gz/parquet/rds artifacts to the nba_stats_pbp release tag.

Loads per-player per-game box scores scraped from the NBA Stats API boxscoretraditionalv3-style output. One row per athlete-game pair. Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_player_boxscores release tag.

Loads per-player per-game logs scraped from stats.nba.com/leaguegamelog?PlayerOrTeam=P (one row per athlete-game pair: minutes, shooting splits, rebounds, steals, blocks, turnovers, personal fouls, plus/minus). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_player_game_logs release tag.

Loads season-level NBA player statistics (leaguedashplayerstats-style outputs, Base measure). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_player_season_stats release tag. For Advanced/Misc/Scoring/Usage/Defense measures and player tracking (drives, passing, touches, speed/distance, etc.), use load_nba_stats_leaguedash() with table = "player_stats_*" or table = "player_tracking_*".

Loads possession-level data derived from the NBA Stats API play-by-play – one row per possession, with the on-court 5-man lineups for both teams, shooting/rebounding/turnover splits, and the possession start type. Backed by the hoopR-nba-stats-data pipeline that publishes csv.gz/parquet/rds artifacts to the nba_stats_possessions release tag.

Loads season-level NBA team rosters scraped from the NBA Stats API. One row per athlete-team-season triple. Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_rosters release tag.

Loads season-level NBA schedules scraped from stats.nba.com/leaguegamefinder (regular season + playoffs combined, pre-rejoined home/away). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_schedules release tag.

Loads shot events scraped from the NBA Stats API. One row per shot attempt with legacy court coordinates, action/sub type, distance, and made/missed result, carried through from the play-by-play feed (not shotchartdetail). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_shots release tag.

Loads season-level NBA standings (leaguestandingsv3-style outputs). One row per team-season. Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_standings release tag.

Loads per-team per-game box scores scraped from the NBA Stats API boxscoretraditionalv3-style output. One row per team-game pair. Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_team_boxscores release tag.

Loads season-level team statistics (leaguedashteamstats-style outputs, Base measure). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_team_season_stats release tag. For Advanced/Misc/Scoring/Defense/Opponent/Four Factors measures, use load_nba_stats_leaguedash() with table = "team_stats_*".

Usage

load_nba_stats_coaches(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_draft(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_game_lineups(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_game_rosters(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_lineups(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_officials(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_pbp(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_player_boxscores(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_player_game_logs(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_player_season_stats(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_possessions(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_rosters(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_schedule(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_shots(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_standings(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_team_boxscores(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_nba_stats_team_season_stats(
  seasons = most_recent_nba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit years – the season's START year (e.g. 2024 for the 2024-25 season), matching sdv-py's load_nba_stats_* convention (see the file-level note in R/load_nba_stats.R). Published coverage floors vary by loader (1996 for most; 2007 for load_nba_stats_lineups() – see that function's own Description) and run through the most recent season with no gaps. Pass seasons = TRUE for every published season for that specific loader.

...

Additional arguments passed to an underlying function that writes the season data into a database.

dbConnection

A DBIConnection object, as returned by DBI::dbConnect()

tablename

The name of the data table within the database

Value

Returns a hoopR_data tibble with one row per coach-team-season.

col_nametypesdescription
team_idintegerUnique NBA Stats team identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).
coach_idintegerUnique coach identifier.
first_namecharacterCoach's first name.
last_namecharacterCoach's last name.
coach_namecharacterCoach's full name.
is_assistantintegerWhether the coach is an assistant coach (1) or head coach (0).
coach_typecharacterCoaching role (e.g. 'Head Coach', 'Assistant Coach').
sort_sequenceintegerDisplay sort order within the coaching staff.
sub_sort_sequenceintegerSecondary display sort order within the coaching staff.
season_typecharacterPortion of the season (e.g. 'Regular Season', 'Playoffs').

Returns a hoopR_data tibble of NBA draft picks.

col_nametypesdescription
person_idintegerUnique player identifier.
player_namecharacterPlayer's name.
seasonintegerSeason identifier (4-digit year, END year of the season).
round_numberintegerDraft round number.
round_pickintegerPick number within the round.
overall_pickintegerOverall pick number.
draft_typecharacterDraft type ('Draft', 'Undrafted', etc.).
team_idintegerUnique NBA Stats team identifier.
team_citycharacterTeam city or region.
team_namecharacterFull team display name.
team_abbreviationcharacterThree-letter team abbreviation.
organizationcharacterPlayer's college / organization prior to the draft.
organization_typecharacterType of organization (e.g. college, international).
player_profile_flagintegerPlayer profile flag.

Returns a hoopR_data tibble with one row per play-by-play action.

col_nametypesdescription
game_idcharacterUnique game identifier.
action_numberintegerSequential play-by-play action number within the game.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
home_player_1integerHome on-court lineup slot 1 player identifier.
home_player_2integerHome on-court lineup slot 2 player identifier.
home_player_3integerHome on-court lineup slot 3 player identifier.
home_player_4integerHome on-court lineup slot 4 player identifier.
home_player_5integerHome on-court lineup slot 5 player identifier.
away_player_1integerAway on-court lineup slot 1 player identifier.
away_player_2integerAway on-court lineup slot 2 player identifier.
away_player_3integerAway on-court lineup slot 3 player identifier.
away_player_4integerAway on-court lineup slot 4 player identifier.
away_player_5integerAway on-court lineup slot 5 player identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).

Returns a hoopR_data tibble with one row per inactive athlete-game pair.

col_nametypesdescription
player_idintegerUnique player identifier.
first_namecharacterPlayer's first name.
last_namecharacterPlayer's last name.
jersey_numcharacterJersey number worn by the player.
team_idintegerUnique NBA Stats team identifier.
team_citycharacterTeam city or region.
team_namecharacterFull team display name.
team_abbreviationcharacterThree-letter team abbreviation.
seasonintegerSeason identifier (4-digit year, END year of the season).
game_idcharacterUnique game identifier.

Returns a hoopR_data tibble of 5-man lineup season stats (182 columns: standard box-score rate/counting stats plus the 5 player-id slots and group_id/group_name). See names(load_nba_stats_lineups()) for the full column set, or the lineups_base table of load_nba_stats_leaguedash() for the equivalent parameter-cube asset.

Returns a hoopR_data tibble with one row per official-game pair.

col_nametypesdescription
official_idintegerUnique official / referee identifier.
first_namecharacterOfficial's first name.
last_namecharacterOfficial's last name.
jersey_numcharacterJersey number worn by the official.
seasonintegerSeason identifier (4-digit year, END year of the season).
game_idcharacterUnique game identifier.

Returns a hoopR_data tibble of per-event play-by-play rows.

col_nametypesdescription
order_indexintegerPlay-by-play chronological order index within the game.
action_numberintegerSequential play-by-play action number within the game.
clockcharacterGame clock remaining in the period.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
team_idintegerUnique NBA Stats team identifier for the acting team.
team_tricodecharacterThree-letter team code.
person_idintegerUnique player identifier for the acting player.
player_namecharacterActing player's name.
player_name_icharacterActing player's name with abbreviated first initial.
x_legacyintegerLegacy X coordinate on the court (0 = basket center).
y_legacyintegerLegacy Y coordinate on the court (baseline at 0).
shot_distanceintegerShot distance from the basket, in feet (shot events only).
shot_resultcharacterShot result, 'Made' or 'Missed' (shot events only).
is_field_goalintegerWhether the action is a field goal attempt (1) or not (0).
score_homecharacterHome team score after the play.
score_awaycharacterAway team score after the play.
points_totalintegerPoints scored on the action, if any.
locationcharacterCourt location code for the action.
descriptioncharacterText description of the play.
action_typecharacterAction type label (e.g. 'Made Shot', 'Missed Shot', 'Rebound').
sub_typecharacterSub type of the action (e.g. 'Jump Shot', 'Layup').
video_availableintegerWhether NBA Stats video is available for the action.
shot_valueintegerPoints the shot was worth, 2 or 3 (shot events only).
action_idintegerUnique play-by-play action identifier.
game_idcharacterUnique game identifier.
seconds_remainingnumericSeconds remaining in the period at the action.
event_typecharacterNormalized event type label.
is_made_shotlogicalWhether the action is a made shot.
is_missed_shotlogicalWhether the action is a missed shot.
is_free_throwlogicalWhether the action is a free throw.
is_reboundlogicalWhether the action is a rebound.
is_turnoverlogicalWhether the action is a turnover.
is_foullogicalWhether the action is a foul.
is_substitutionlogicalWhether the action is a substitution.
is_jump_balllogicalWhether the action is a jump ball.
is_timeoutlogicalWhether the action is a timeout.
is_periodlogicalWhether the action is a period-boundary marker.
possession_numberintegerSequential possession number within the game.
off_player_1integerOffensive on-court lineup slot 1 player identifier.
off_player_2integerOffensive on-court lineup slot 2 player identifier.
off_player_3integerOffensive on-court lineup slot 3 player identifier.
off_player_4integerOffensive on-court lineup slot 4 player identifier.
off_player_5integerOffensive on-court lineup slot 5 player identifier.
def_player_1integerDefensive on-court lineup slot 1 player identifier.
def_player_2integerDefensive on-court lineup slot 2 player identifier.
def_player_3integerDefensive on-court lineup slot 3 player identifier.
def_player_4integerDefensive on-court lineup slot 4 player identifier.
def_player_5integerDefensive on-court lineup slot 5 player identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).

Returns a hoopR_data tibble with one row per athlete-game pair.

col_nametypesdescription
team_idintegerUnique NBA Stats team identifier.
team_namecharacterFull team display name.
team_tricodecharacterThree-letter team code.
sidecharacterWhether the team was 'home' or 'away'.
person_idintegerUnique player identifier.
first_namecharacterPlayer's first name.
family_namecharacterPlayer's family (last) name.
name_icharacterPlayer's name with abbreviated first initial.
player_slugcharacterURL-safe player name slug.
positioncharacterPlayer's roster position.
commentcharacterReason the player did not play, if applicable (e.g. 'DND - Injury').
jersey_numcharacterJersey number worn by the player.
minutescharacterMinutes played, as an MM:SS string.
field_goals_madeintegerField goals made.
field_goals_attemptedintegerField goal attempts.
field_goals_percentagenumericField goal percentage (0-1).
three_pointers_madeintegerThree-point field goals made.
three_pointers_attemptedintegerThree-point field goal attempts.
three_pointers_percentagenumericThree-point field goal percentage (0-1).
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
free_throws_percentagenumericFree throw percentage (0-1).
rebounds_offensiveintegerOffensive rebounds.
rebounds_defensiveintegerDefensive rebounds.
rebounds_totalintegerTotal rebounds.
assistsintegerAssists.
stealsintegerSteals.
blocksintegerBlocks.
turnoversintegerTurnovers.
fouls_personalintegerPersonal fouls.
pointsintegerPoints scored.
plus_minus_pointsnumericPlus/minus point differential while on court.
game_idcharacterUnique game identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).

Returns a hoopR_data tibble of per-athlete per-game log rows.

col_nametypesdescription
season_idcharacterUnique season identifier string.
team_idintegerUnique NBA Stats team identifier.
team_abbreviationcharacterThree-letter team abbreviation.
team_namecharacterFull team display name.
game_idcharacterUnique game identifier.
game_datecharacterDate the game was played, as an ISO 'YYYY-MM-DD' string.
matchupcharacterMatchup string, e.g. 'BOS vs. NYK' or 'BOS @ NYK'.
wlcharacterGame result, 'W' or 'L'.
minintegerMinutes played.
fgmintegerField goals made.
fgaintegerField goal attempts.
fg_pctnumericField goal percentage (0-1).
fg3mintegerThree-point field goals made.
fg3aintegerThree-point field goal attempts.
fg3_pctnumericThree-point field goal percentage (0-1).
ftmintegerFree throws made.
ftaintegerFree throw attempts.
ft_pctnumericFree throw percentage (0-1).
orebintegerOffensive rebounds.
drebintegerDefensive rebounds.
rebintegerTotal rebounds.
astintegerAssists.
stlintegerSteals.
blkintegerBlocks.
tovintegerTurnovers.
pfintegerPersonal fouls.
ptsintegerPoints scored.
plus_minusintegerPlus/minus point differential while on court.
video_availableintegerWhether NBA Stats video is available for the game.
seasonintegerSeason identifier (4-digit year, END year of the season).
season_typecharacterPortion of the season (e.g. 'Regular Season', 'Playoffs').

Returns a hoopR_data tibble of player season stats (210 columns: rank fields, bio fields, and standard/rank box-score rate/counting stats for the season). See names(load_nba_stats_player_season_stats()) for the full column set, or the player_stats_base table of load_nba_stats_leaguedash() for the equivalent parameter-cube asset.

Returns a hoopR_data tibble with one row per possession.

col_nametypesdescription
game_idcharacterUnique game identifier.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
possession_numberintegerSequential possession number within the game.
offense_team_idintegerTeam identifier for the team on offense.
defense_team_idintegerTeam identifier for the team on defense.
start_order_indexintegerPlay-by-play order index at the start of the possession.
end_order_indexintegerPlay-by-play order index at the end of the possession.
start_seconds_remainingnumericSeconds remaining in the period at possession start.
end_seconds_remainingnumericSeconds remaining in the period at possession end.
pointsintegerPoints scored on the possession.
is_second_chancelogicalWhether the possession followed an offensive rebound.
number_in_periodintegerSequential possession number within the period.
possession_start_typecharacterHow the possession started (e.g. 'OffDeadball', 'OffRebound').
count_as_possessionlogicalWhether the event counts as a scoreable possession.
fg2ainteger2-point field goal attempts by the lineup.
fg2minteger2-point field goals made by the lineup.
fg3ainteger3-point field goal attempts by the lineup.
fg3minteger3-point field goals made by the lineup.
ftaintegerFree throw attempts by the lineup.
ftmintegerFree throws made by the lineup.
orebintegerOffensive rebounds.
drebintegerDefensive rebounds.
tovintegerTurnovers.
off_player_1integerOffensive lineup slot 1 player identifier.
off_player_2integerOffensive lineup slot 2 player identifier.
off_player_3integerOffensive lineup slot 3 player identifier.
off_player_4integerOffensive lineup slot 4 player identifier.
off_player_5integerOffensive lineup slot 5 player identifier.
def_player_1integerDefensive lineup slot 1 player identifier.
def_player_2integerDefensive lineup slot 2 player identifier.
def_player_3integerDefensive lineup slot 3 player identifier.
def_player_4integerDefensive lineup slot 4 player identifier.
def_player_5integerDefensive lineup slot 5 player identifier.
lineup_sourcecharacterProvenance of the lineup join (e.g. 'game_lineups', 'derived').
seasonintegerSeason identifier (4-digit year, END year of the season).

Returns a hoopR_data tibble with one row per athlete-team-season.

col_nametypesdescription
team_idintegerUnique NBA Stats team identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).
league_idcharacterLeague identifier ('00' for NBA).
playercharacterPlayer's full name.
nicknamecharacterPlayer's nickname.
player_slugcharacterURL-safe player name slug.
numcharacterJersey number worn by the player.
positioncharacterPlayer's roster position.
heightcharacterPlayer's listed height (feet-inches).
weightcharacterPlayer's listed weight (lbs).
birth_datecharacterPlayer's date of birth.
agenumericPlayer's age.
expcharacterYears of NBA experience ('R' for rookie).
schoolcharacterPlayer's last college / school attended.
player_idintegerUnique player identifier.
how_acquiredcharacterHow the player joined the roster (e.g. 'Draft', 'Trade').
supplemental_statusintegerRoster supplemental / two-way status flag.
season_typecharacterPortion of the season (e.g. 'Regular Season', 'Playoffs').

Returns a hoopR_data tibble of per-season schedules, one row per game with the home/away sides pre-joined into home_* / away_* columns.

col_nametypesdescription
game_idcharacterUnique game identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).
season_typecharacterPortion of the season (e.g. 'Regular Season', 'Playoffs').
game_datecharacterDate the game was played, as an ISO 'YYYY-MM-DD' string.
matchupcharacterMatchup string, home side first (e.g. 'BOS vs. NYK').
home_team_idintegerUnique NBA Stats team identifier for the home team.
home_team_abbreviationcharacterHome team abbreviation.
home_team_namecharacterHome team full name.
home_ptsintegerPoints scored by the home team.
home_wlcharacterHome team result, 'W' or 'L'.
away_team_idintegerUnique NBA Stats team identifier for the away team.
away_team_abbreviationcharacterAway team abbreviation.
away_team_namecharacterAway team full name.
away_ptsintegerPoints scored by the away team.
away_wlcharacterAway team result, 'W' or 'L'.

Returns a hoopR_data tibble with one row per shot attempt.

col_nametypesdescription
game_idcharacterUnique game identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
clockcharacterGame clock remaining in the period.
team_idintegerUnique NBA Stats team identifier for the shooting team.
team_tricodecharacterThree-letter team code (e.g. 'BOS' / 'NYK').
person_idintegerUnique player identifier for the shooter.
player_namecharacterShooter's name.
action_typecharacterAction type label ('Made Shot' or 'Missed Shot').
sub_typecharacterShot sub type (e.g. 'Jump Shot', 'Layup', 'Dunk').
shot_resultcharacterShot result, 'Made' or 'Missed'.
shot_valueintegerPoints the shot was worth (2 or 3).
shot_distanceintegerShot distance from the basket, in feet.
x_legacyintegerLegacy X coordinate on the court (0 = basket center).
y_legacyintegerLegacy Y coordinate on the court (baseline at 0).
descriptioncharacterText description of the play.
score_homecharacterHome team score after the play.
score_awaycharacterAway team score after the play.

Returns a hoopR_data tibble of team standings (94 columns: win/ loss splits by home/road/conference/division/last-10, streak fields, and points-per-game aggregates). See names(load_nba_stats_standings()) for the full column set. The standings table of load_nba_stats_leaguedash() is the equivalent parameter-cube asset (same underlying leaguestandingsv3 endpoint).

Returns a hoopR_data tibble with one row per team-game pair.

col_nametypesdescription
team_idintegerUnique NBA Stats team identifier.
team_namecharacterFull team display name.
team_tricodecharacterThree-letter team code.
sidecharacterWhether the team was 'home' or 'away'.
minutescharacterTotal minutes played, as an MM:SS string.
field_goals_madeintegerField goals made.
field_goals_attemptedintegerField goal attempts.
field_goals_percentagenumericField goal percentage (0-1).
three_pointers_madeintegerThree-point field goals made.
three_pointers_attemptedintegerThree-point field goal attempts.
three_pointers_percentagenumericThree-point field goal percentage (0-1).
free_throws_madeintegerFree throws made.
free_throws_attemptedintegerFree throw attempts.
free_throws_percentagenumericFree throw percentage (0-1).
rebounds_offensiveintegerOffensive rebounds.
rebounds_defensiveintegerDefensive rebounds.
rebounds_totalintegerTotal rebounds.
assistsintegerAssists.
stealsintegerSteals.
blocksintegerBlocks.
turnoversintegerTurnovers.
fouls_personalintegerPersonal fouls.
pointsintegerPoints scored.
plus_minus_pointsnumericPlus/minus point differential.
game_idcharacterUnique game identifier.
seasonintegerSeason identifier (4-digit year, END year of the season).

Returns a hoopR_data tibble of team season stats (178 columns: rank fields plus standard/rank box-score rate/counting stats for the season). See names(load_nba_stats_team_season_stats()) for the full column set, or the team_stats_base table of load_nba_stats_leaguedash() for the equivalent parameter-cube asset.

See also

Other NBA Stats loader functions: load_nba_stats_leaguedash()

Examples

# \donttest{
  try(load_nba_stats_coaches(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_coaches/coaches_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_coaches/coaches_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_draft(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 60 × 14
#>    person_id player_name  season round_number round_pick overall_pick draft_type
#>        <int> <chr>         <int>        <int>      <int>        <int> <chr>     
#>  1   1643407 AJ Dybantsa    2027            1          1            1 Draft     
#>  2   1643408 Darryn Pete…   2027            1          2            2 Draft     
#>  3   1643409 Cameron Boo…   2027            1          3            3 Draft     
#>  4   1643410 Caleb Wilson   2027            1          4            4 Draft     
#>  5   1643413 Keaton Wagl…   2027            1          5            5 Draft     
#>  6   1643414 Mikel Brown…   2027            1          6            6 Draft     
#>  7   1643411 Darius Acuf…   2027            1          7            7 Draft     
#>  8   1643412 Kingston Fl…   2027            1          8            8 Draft     
#>  9   1643516 Morez Johns…   2027            1          9            9 Draft     
#> 10   1643415 Brayden Bur…   2027            1         10           10 Draft     
#> # ℹ 50 more rows
#> # ℹ 7 more variables: team_id <int>, team_city <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, organization <chr>, organization_type <chr>,
#> #   player_profile_flag <int>
# }
# \donttest{
  try(load_nba_stats_game_lineups(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_game_lineups/nba_lineups_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_game_lineups/nba_lineups_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_game_rosters(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_game_rosters/game_rosters_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_game_rosters/game_rosters_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_lineups(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_lineups/lineups_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_lineups/lineups_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_officials(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_officials/officials_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_officials/officials_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_pbp(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_pbp/nba_play_by_play_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_pbp/nba_play_by_play_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_player_boxscores(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_player_boxscores/player_boxscores_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_player_boxscores/player_boxscores_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_player_game_logs(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_player_game_logs/player_game_logs_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_player_game_logs/player_game_logs_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_player_season_stats(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_player_season_stats/player_season_stats_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_player_season_stats/player_season_stats_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_possessions(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_possessions/nba_possessions_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_possessions/nba_possessions_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_rosters(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_rosters/rosters_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_rosters/rosters_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_schedule(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_schedules/nba_schedule_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_schedules/nba_schedule_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_shots(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_shots/shots_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_shots/shots_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_standings(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_standings/standings_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_standings/standings_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_team_boxscores(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_team_boxscores/team_boxscores_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_team_boxscores/team_boxscores_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_nba_stats_team_season_stats(seasons = most_recent_nba_stats_season()))
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_team_season_stats/team_season_stats_2027.rds': HTTP status was '404 Not Found'
#> Warning: Failed to readRDS from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/nba_stats_team_season_stats/team_season_stats_2027.rds>
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 0 × 0
# }