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 per-team per-game logs scraped from stats.nba.com/leaguegamelog?PlayerOrTeam=T (one row per team-game: the team's box line, matchup and result). Backed by the hoopR-nba-stats-data pipeline that publishes csv/parquet/rds artifacts to the nba_stats_team_game_logs release tag. These rows were published as nba_stats_player_game_logs until 2026-11-13.

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_team_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
)

Source

The nba_stats_coaches release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_coaches, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_draft release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_draft, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_game_lineups release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_game_lineups, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_game_rosters release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_game_rosters, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_lineups release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_lineups, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_officials release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_officials, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_pbp release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_pbp, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_player_boxscores release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_player_boxscores, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_player_game_logs release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_player_game_logs, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_player_season_stats release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_player_season_stats, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_possessions release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_possessions, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_rosters release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_rosters, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_schedules release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_schedules, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_shots release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_shots, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_standings release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_standings, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_team_boxscores release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_team_boxscores, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

The nba_stats_team_season_stats release: https://github.com/sportsdataverse/sportsdataverse-data/releases/tag/nba_stats_team_season_stats, published by https://github.com/sportsdataverse/hoopR-nba-stats-data.

Arguments

seasons

A vector of 4-digit years – the season's START year (e.g. 2024 for the 2024-25 season), matching sportsdataverse-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

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').

A hoopR_data tibble with one row per pick.

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.

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).

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.

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.

A hoopR_data tibble with one row per play-by-play action.

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).

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).

A hoopR_data tibble with one row per athlete-game pair.

col_nametypesdescription
season_idcharacterUnique season identifier string.
player_idintegerUnique NBA Stats player identifier.
player_namecharacterPlayer display name, e.g. 'LeBron James'.
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.
fantasy_ptsnumericNBA Stats fantasy points for the game.
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').

A hoopR_data tibble with one row per team-game pair.

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_minusintegerTeam point differential for the game.
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.

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).

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').

A hoopR_data tibble with one row per game.

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'.

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).

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.

Examples

# \donttest{
  try(load_nba_stats_coaches(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 298 × 11
#>       team_id season coach_id first_name last_name coach_name     is_assistant
#>         <int>  <int>    <int> <chr>      <chr>     <chr>                 <int>
#>  1 1610612737   2027   202439 Quin       Snyder    Quin Snyder               1
#>  2 1610612737   2027     2166 Igor       Kokoskov  Igor Kokoskov             2
#>  3 1610612737   2027   202327 Ekpe       Udoh      Ekpe Udoh                 2
#>  4 1610612737   2027   203753 Ronald     Nored     Ronald Nored              2
#>  5 1610612737   2027   204238 Antonio    Lang      Antonio Lang              2
#>  6 1610612737   2027  1626233 Jeff       Watkinson Jeff Watkinson            2
#>  7 1610612737   2027  1628216 Bryan      Bailey    Bryan Bailey              2
#>  8 1610612737   2027  1628852 Ryan       Schmidt   Ryan Schmidt              2
#>  9 1610612737   2027  1641826 Mike       Brey      Mike Brey                 2
#> 10 1610612737   2027  1629239 Sanjay     Lumpkin   Sanjay Lumpkin            2
#> # ℹ 288 more rows
#> # ℹ 4 more variables: coach_type <chr>, sort_sequence <int>,
#> #   sub_sort_sequence <int>, season_type <chr>
# }
# \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{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_game_lineups(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 88,727 × 14
#>    game_id    action_number period home_player_1 home_player_2 home_player_3
#>    <chr>              <int>  <int>         <int>         <int>         <int>
#>  1 0022600001             2      1       1628381       1629130       1630595
#>  2 0022600001             4      1       1628381       1629130       1630595
#>  3 0022600001             7      1       1628381       1629130       1630595
#>  4 0022600001             9      1       1628381       1629130       1630595
#>  5 0022600001            10      1       1628381       1629130       1630595
#>  6 0022600001            11      1       1628381       1629130       1630595
#>  7 0022600001            12      1       1628381       1629130       1630595
#>  8 0022600001            13      1       1628381       1629130       1630595
#>  9 0022600001            14      1       1628381       1629130       1630595
#> 10 0022600001            15      1       1628381       1629130       1630595
#> # ℹ 88,717 more rows
#> # ℹ 8 more variables: home_player_4 <int>, home_player_5 <int>,
#> #   away_player_1 <int>, away_player_2 <int>, away_player_3 <int>,
#> #   away_player_4 <int>, away_player_5 <int>, season <int>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_game_rosters(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 1,117 × 11
#>    player_id first_name last_name  jersey_num    team_id team_city     team_name
#>        <int> <chr>      <chr>      <chr>           <int> <chr>         <chr>    
#>  1   1643717 Josh       Dix        "21  "     1610612760 Oklahoma City Thunder  
#>  2   1642260 Nikola     Topic      "44  "     1610612760 Oklahoma City Thunder  
#>  3   1642850 Thomas     Sorber     "12  "     1610612760 Oklahoma City Thunder  
#>  4   1642923 Otega      Oweh       "13  "     1610612760 Oklahoma City Thunder  
#>  5    202699 Tobias     Harris     "23  "     1610612759 San Antonio   Spurs    
#>  6   1643519 Jayden     Quaintance "22  "     1610612759 San Antonio   Spurs    
#>  7   1642461 Spencer    Jones      "21  "     1610612743 Denver        Nuggets  
#>  8   1631124 Julian     Strawther  "1   "     1610612743 Denver        Nuggets  
#>  9   1641715 Cam        Whitmore   "00  "     1610612743 Denver        Nuggets  
#> 10   1642260 Nikola     Topic      "44  "     1610612760 Oklahoma City Thunder  
#> # ℹ 1,107 more rows
#> # ℹ 4 more variables: team_abbreviation <chr>, season <int>, game_id <chr>,
#> #   season_type_id <chr>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_lineups(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 32,000 × 192
#>    group_set group_id     group_name team_id team_abbreviation    gp     w     l
#>    <chr>     <chr>        <chr>        <int> <chr>             <int> <int> <int>
#>  1 Lineups   -2544-20395… L. James …  1.61e9 PHI                   8     6     2
#>  2 Lineups   -203932-203… A. Gordon…  1.61e9 DEN                   7     4     3
#>  3 Lineups   -203468-162… C. McColl…  1.61e9 ATL                   9     4     5
#>  4 Lineups   -202691-203… K. Thomps…  1.61e9 MIA                  10     4     6
#>  5 Lineups   -201142-162… K. Durant…  1.61e9 HOU                   8     6     2
#>  6 Lineups   -1628368-16… D. Fox - …  1.61e9 SAS                  10     8     2
#>  7 Lineups   -1626157-16… K. Towns …  1.61e9 NYK                   8     3     5
#>  8 Lineups   -201935-162… J. Harden…  1.61e9 CLE                   8     5     3
#>  9 Lineups   -1629660-16… T. Jerome…  1.61e9 MEM                   8     4     4
#> 10 Lineups   -1626181-16… N. Powell…  1.61e9 CHI                   8     1     7
#> # ℹ 31,990 more rows
#> # ℹ 184 more variables: w_pct <dbl>, min <dbl>, e_off_rating <dbl>,
#> #   off_rating <dbl>, e_def_rating <dbl>, def_rating <dbl>, e_net_rating <dbl>,
#> #   net_rating <dbl>, ast_pct <dbl>, ast_to <dbl>, ast_ratio <dbl>,
#> #   oreb_pct <dbl>, dreb_pct <dbl>, reb_pct <dbl>, tm_tov_pct <dbl>,
#> #   efg_pct <dbl>, ts_pct <dbl>, e_pace <dbl>, pace <dbl>, pace_per40 <dbl>,
#> #   poss <int>, pie <dbl>, gp_rank <int>, w_rank <int>, l_rank <int>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_officials(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 511 × 7
#>    official_id first_name last_name jersey_num season game_id    season_type_id
#>          <int> <chr>      <chr>     <chr>       <int> <chr>      <chr>         
#>  1        2530 Ed         Malloy    "7   "       2027 0022600001 2             
#>  2      202041 Kevin      Scott     "24  "       2027 0022600001 2             
#>  3     1626302 Aaron      Smith     "51  "       2027 0022600001 2             
#>  4      201639 Josh       Tiven     "58  "       2027 0022600002 2             
#>  5      202901 Matt       Myers     "43  "       2027 0022600002 2             
#>  6      203593 Justin     Van Duyne "64  "       2027 0022600002 2             
#>  7      101283 Brian      Forte     "45  "       2027 0022600003 2             
#>  8      202037 J.T.       Orr       "72  "       2027 0022600003 2             
#>  9      202049 Ben        Taylor    "46  "       2027 0022600003 2             
#> 10      202007 Nick       Buchert   "3   "       2027 0022600004 2             
#> # ℹ 501 more rows
# }
# \donttest{
  # One season is a ~19 MB download.
  try(load_nba_stats_pbp(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 88,727 × 49
#>    order_index action_number clock       period   team_id team_tricode person_id
#>          <int>         <int> <chr>        <int>     <int> <chr>            <int>
#>  1           0             2 PT12M00.00S      1    0      ""                   0
#>  2           1             4 PT12M00.00S      1    1.61e9 "DET"          1631105
#>  3           2             7 PT11M48.00S      1    1.61e9 "BOS"          1629011
#>  4           3             9 PT11M48.00S      1    1.61e9 "BOS"          1629011
#>  5           4            10 PT11M32.00S      1    1.61e9 "DET"          1628381
#>  6           5            11 PT11M32.00S      1    1.61e9 "BOS"          1641775
#>  7           6            12 PT11M24.00S      1    1.61e9 "BOS"          1629011
#>  8           7            13 PT11M12.00S      1    1.61e9 "DET"          1629130
#>  9           8            14 PT11M12.00S      1    1.61e9 "DET"          1628381
#> 10           9            15 PT11M09.00S      1    1.61e9 "DET"          1628381
#> # ℹ 88,717 more rows
#> # ℹ 42 more variables: player_name <chr>, player_name_i <chr>, x_legacy <int>,
#> #   y_legacy <int>, shot_distance <int>, shot_result <chr>,
#> #   is_field_goal <int>, score_home <chr>, score_away <chr>,
#> #   points_total <int>, location <chr>, description <chr>, action_type <chr>,
#> #   sub_type <chr>, video_available <int>, shot_value <int>, action_id <int>,
#> #   game_id <chr>, seconds_remaining <dbl>, event_type <chr>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_player_boxscores(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 4,928 × 37
#>    team_id team_city team_name team_tricode team_slug side  person_id first_name
#>      <int> <chr>     <chr>     <chr>        <chr>     <chr>     <int> <chr>     
#>  1  1.61e9 Detroit   Pistons   DET          pistons   home    1641709 Ausar     
#>  2  1.61e9 Detroit   Pistons   DET          pistons   home    1628381 John      
#>  3  1.61e9 Detroit   Pistons   DET          pistons   home    1631105 Jalen     
#>  4  1.61e9 Detroit   Pistons   DET          pistons   home    1629130 Duncan    
#>  5  1.61e9 Detroit   Pistons   DET          pistons   home    1630595 Cade      
#>  6  1.61e9 Detroit   Pistons   DET          pistons   home    1630198 Isaiah    
#>  7  1.61e9 Detroit   Pistons   DET          pistons   home    1630194 Paul      
#>  8  1.61e9 Detroit   Pistons   DET          pistons   home    1641842 Ronald    
#>  9  1.61e9 Detroit   Pistons   DET          pistons   home    1642450 Daniss    
#> 10  1.61e9 Detroit   Pistons   DET          pistons   home    1628989 Kevin     
#> # ℹ 4,918 more rows
#> # ℹ 29 more variables: family_name <chr>, name_i <chr>, player_slug <chr>,
#> #   position <chr>, comment <chr>, jersey_num <chr>, minutes <chr>,
#> #   field_goals_made <int>, field_goals_attempted <int>,
#> #   field_goals_percentage <dbl>, three_pointers_made <int>,
#> #   three_pointers_attempted <int>, three_pointers_percentage <dbl>,
#> #   free_throws_made <int>, free_throws_attempted <int>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_player_game_logs(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 3,933 × 34
#>    season_id player_id player_name   team_id team_abbreviation team_name game_id
#>    <chr>         <int> <chr>           <int> <chr>             <chr>     <chr>  
#>  1 22026       1642845 VJ Edgecombe   1.61e9 PHI               Philadel… 002260…
#>  2 22026       1631119 Jaylin Willi…  1.61e9 OKC               Oklahoma… 002260…
#>  3 22026        203083 Andre Drummo…  1.61e9 NYK               New York… 002260…
#>  4 22026       1629026 Kenrich Will…  1.61e9 OKC               Oklahoma… 002260…
#>  5 22026       1628384 OG Anunoby     1.61e9 NYK               New York… 002260…
#>  6 22026       1641705 Victor Wemba…  1.61e9 SAS               San Anto… 002260…
#>  7 22026       1628969 Mikal Bridges  1.61e9 NYK               New York… 002260…
#>  8 22026       1627936 Alex Caruso    1.61e9 OKC               Oklahoma… 002260…
#>  9 22026       1628973 Jalen Brunson  1.61e9 NYK               New York… 002260…
#> 10 22026       1628983 Shai Gilgeou…  1.61e9 OKC               Oklahoma… 002260…
#> # ℹ 3,923 more rows
#> # ℹ 27 more variables: game_date <chr>, matchup <chr>, wl <chr>, min <int>,
#> #   fgm <int>, fga <int>, fg_pct <dbl>, fg3m <int>, fg3a <int>, fg3_pct <dbl>,
#> #   ftm <int>, fta <int>, ft_pct <dbl>, oreb <int>, dreb <int>, reb <int>,
#> #   ast <int>, stl <int>, blk <int>, tov <int>, pf <int>, pts <int>,
#> #   plus_minus <int>, fantasy_pts <dbl>, video_available <int>, season <int>,
#> #   season_type <chr>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_team_game_logs(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 348 × 31
#>    season_id team_id team_abbreviation team_name game_id game_date matchup wl   
#>    <chr>       <int> <chr>             <chr>     <chr>   <chr>     <chr>   <chr>
#>  1 22026      1.61e9 DET               Detroit … 002260… 2026-10-… DET vs… W    
#>  2 22026      1.61e9 BOS               Boston C… 002260… 2026-10-… BOS @ … L    
#>  3 22026      1.61e9 SAS               San Anto… 002260… 2026-10-… SAS vs… L    
#>  4 22026      1.61e9 PHI               Philadel… 002260… 2026-10-… PHI @ … W    
#>  5 22026      1.61e9 NYK               New York… 002260… 2026-10-… NYK vs… L    
#>  6 22026      1.61e9 OKC               Oklahoma… 002260… 2026-10-… OKC @ … W    
#>  7 22026      1.61e9 WAS               Washingt… 002260… 2026-10-… WAS vs… W    
#>  8 22026      1.61e9 ORL               Orlando … 002260… 2026-10-… ORL vs… L    
#>  9 22026      1.61e9 ATL               Atlanta … 002260… 2026-10-… ATL @ … W    
#> 10 22026      1.61e9 BKN               Brooklyn… 002260… 2026-10-… BKN vs… L    
#> # ℹ 338 more rows
#> # ℹ 23 more variables: min <int>, fgm <int>, fga <int>, fg_pct <dbl>,
#> #   fg3m <int>, fg3a <int>, fg3_pct <dbl>, ftm <int>, fta <int>, ft_pct <dbl>,
#> #   oreb <int>, dreb <int>, reb <int>, ast <int>, stl <int>, blk <int>,
#> #   tov <int>, pf <int>, pts <int>, plus_minus <int>, video_available <int>,
#> #   season <int>, season_type <chr>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_player_season_stats(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 5,568 × 212
#>    player_id player_name   nickname  team_id team_abbreviation   age    gp     w
#>        <int> <chr>         <chr>       <int> <chr>             <dbl> <int> <int>
#>  1   1643407 AJ Dybantsa   AJ         1.61e9 WAS                  19     8     2
#>  2   1631260 AJ Green      AJ         1.61e9 MIL                  27    12     1
#>  3   1642358 AJ Johnson    AJ         1.61e9 NOP                  21     4     1
#>  4    203932 Aaron Gordon  Aaron      1.61e9 DEN                  31    10     6
#>  5   1630174 Aaron Nesmith Aaron      1.61e9 IND                  27    10     3
#>  6   1630598 Aaron Wiggins Aaron      1.61e9 ATL                  27    12     7
#>  7   1642846 Ace Bailey    Ace        1.61e9 UTA                  20    12     1
#>  8   1643530 Aday Mara     Aday       1.61e9 OKC                  21    12     8
#>  9   1641737 Adem Bona     Adem       1.61e9 PHI                  23     9     8
#> 10   1642876 Adou Thiero   Adou       1.61e9 LAL                  22     4     4
#> # ℹ 5,558 more rows
#> # ℹ 204 more variables: l <int>, w_pct <dbl>, min <dbl>, e_off_rating <dbl>,
#> #   off_rating <dbl>, sp_work_off_rating <dbl>, e_def_rating <dbl>,
#> #   def_rating <dbl>, sp_work_def_rating <dbl>, e_net_rating <dbl>,
#> #   net_rating <dbl>, sp_work_net_rating <dbl>, ast_pct <dbl>, ast_to <dbl>,
#> #   ast_ratio <dbl>, oreb_pct <dbl>, dreb_pct <dbl>, reb_pct <dbl>,
#> #   tm_tov_pct <dbl>, e_tov_pct <dbl>, efg_pct <dbl>, ts_pct <dbl>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_possessions(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 33,864 × 38
#>    game_id    period possession_number offense_team_id defense_team_id
#>    <chr>       <int>             <int>           <int>           <int>
#>  1 0022600001      1                 1      1610612738      1610612765
#>  2 0022600001      1                 2      1610612765      1610612738
#>  3 0022600001      1                 3      1610612738      1610612765
#>  4 0022600001      1                 4      1610612765      1610612738
#>  5 0022600001      1                 5      1610612738      1610612765
#>  6 0022600001      1                 6      1610612765      1610612738
#>  7 0022600001      1                 7      1610612738      1610612765
#>  8 0022600001      1                 8      1610612765      1610612738
#>  9 0022600001      1                 9      1610612738      1610612765
#> 10 0022600001      1                10      1610612765      1610612738
#> # ℹ 33,854 more rows
#> # ℹ 33 more variables: start_order_index <int>, end_order_index <int>,
#> #   start_seconds_remaining <dbl>, end_seconds_remaining <dbl>, points <int>,
#> #   is_second_chance <lgl>, number_in_period <int>,
#> #   possession_start_type <chr>, count_as_possession <lgl>, fg2a <int>,
#> #   fg2m <int>, fg3a <int>, fg3m <int>, fta <int>, ftm <int>, oreb <int>,
#> #   dreb <int>, tov <int>, off_player_1 <int>, off_player_2 <int>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_rosters(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 524 × 18
#>       team_id season league_id player nickname player_slug num   position height
#>         <int>  <int> <chr>     <chr>  <chr>    <chr>       <chr> <chr>    <chr> 
#>  1 1610612737   2027 00        Lugue… Luguentz luguentz-d… 0     G        6-4   
#>  2 1610612737   2027 00        RayJ … RayJ     rayj-dennis 00    G        6-1   
#>  3 1610612737   2027 00        Kesho… Keshon   keshon-gil… 00    G        6-3   
#>  4 1610612737   2027 00        Jalen… Jalen    jalen-john… 1     F        6-8   
#>  5 1610612737   2027 00        Aaron… Aaron    aaron-wigg… 2     G        6-5   
#>  6 1610612737   2027 00        CJ Mc… CJ       cj-mccollum 3     G        6-2   
#>  7 1610612737   2027 00        Kings… Kingston kingston-f… 4     G        6-3   
#>  8 1610612737   2027 00        Dyson… Dyson    dyson-dani… 5     G        6-7   
#>  9 1610612737   2027 00        Nicke… Nickeil  nickeil-al… 7     G        6-5   
#> 10 1610612737   2027 00        Doria… Dorian   dorian-fin… 8     F        6-7   
#> # ℹ 514 more rows
#> # ℹ 9 more variables: weight <chr>, birth_date <chr>, age <dbl>, exp <chr>,
#> #   school <chr>, player_id <int>, how_acquired <chr>,
#> #   supplemental_status <int>, season_type <chr>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_schedule(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 1,274 × 15
#>    game_id    season season_type game_date  matchup     home_team_id
#>    <chr>       <int> <chr>       <chr>      <chr>              <int>
#>  1 0012600001   2027 preseason   2026-10-08 MIA vs. NOP   1610612748
#>  2 0012600002   2027 preseason   2026-10-10 MIA vs. MIN   1610612748
#>  3 0012600003   2027 preseason   2026-10-14 MIA vs. BKN   1610612748
#>  4 0012600004   2027 preseason   2026-10-05 ATL vs. MEM   1610612737
#>  5 0012600005   2027 preseason   2026-10-08 SAS vs. ATL   1610612759
#>  6 0012600006   2027 preseason   2026-10-10 IND vs. ATL   1610612754
#>  7 0012600007   2027 preseason   2026-10-12 ATL vs. OKC   1610612737
#>  8 0012600008   2027 preseason   2026-10-16 DAL vs. ATL   1610612742
#>  9 0012600009   2027 preseason   2026-10-03 TOR vs. MIA   1610612761
#> 10 0012600010   2027 preseason   2026-10-06 GSW vs. LAL   1610612744
#> # ℹ 1,264 more rows
#> # ℹ 9 more variables: home_team_abbreviation <chr>, home_team_name <chr>,
#> #   home_pts <int>, home_wl <chr>, away_team_id <int>,
#> #   away_team_abbreviation <chr>, away_team_name <chr>, away_pts <int>,
#> #   away_wl <chr>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_shots(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 29,857 × 19
#>    game_id    season season_type_id period clock  team_id team_tricode person_id
#>    <chr>       <int> <chr>           <int> <chr>    <int> <chr>            <int>
#>  1 0022600001   2027 2                   1 PT11M…  1.61e9 DET            1628381
#>  2 0022600001   2027 2                   1 PT11M…  1.61e9 DET            1629130
#>  3 0022600001   2027 2                   1 PT11M…  1.61e9 DET            1628381
#>  4 0022600001   2027 2                   1 PT10M…  1.61e9 DET            1631105
#>  5 0022600001   2027 2                   1 PT10M…  1.61e9 BOS            1628369
#>  6 0022600001   2027 2                   1 PT10M…  1.61e9 DET            1631105
#>  7 0022600001   2027 2                   1 PT09M…  1.61e9 BOS            1628401
#>  8 0022600001   2027 2                   1 PT09M…  1.61e9 BOS             202331
#>  9 0022600001   2027 2                   1 PT09M…  1.61e9 DET            1629130
#> 10 0022600001   2027 2                   1 PT08M…  1.61e9 DET            1631105
#> # ℹ 29,847 more rows
#> # ℹ 11 more variables: player_name <chr>, action_type <chr>, sub_type <chr>,
#> #   shot_result <chr>, shot_value <int>, shot_distance <int>, x_legacy <int>,
#> #   y_legacy <int>, description <chr>, score_home <chr>, score_away <chr>
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_standings(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 30 × 94
#>    league_id season_id    team_id team_city    team_name    team_slug conference
#>    <chr>     <chr>          <int> <chr>        <chr>        <chr>     <chr>     
#>  1 00        22026     1610612738 Boston       Celtics      celtics   East      
#>  2 00        22026     1610612747 Los Angeles  Lakers       lakers    West      
#>  3 00        22026     1610612755 Philadelphia 76ers        sixers    East      
#>  4 00        22026     1610612759 San Antonio  Spurs        spurs     West      
#>  5 00        22026     1610612765 Detroit      Pistons      pistons   East      
#>  6 00        22026     1610612745 Houston      Rockets      rockets   West      
#>  7 00        22026     1610612737 Atlanta      Hawks        hawks     East      
#>  8 00        22026     1610612757 Portland     Trail Blaze… blazers   West      
#>  9 00        22026     1610612750 Minnesota    Timberwolves timberwo… West      
#> 10 00        22026     1610612752 New York     Knicks       knicks    East      
#> # ℹ 20 more rows
#> # ℹ 87 more variables: conference_record <chr>, playoff_rank <int>,
#> #   clinch_indicator <chr>, division <chr>, division_record <chr>,
#> #   division_rank <int>, wins <int>, losses <int>, win_pct <dbl>,
#> #   league_rank <int>, record <chr>, home <chr>, road <chr>, l10 <chr>,
#> #   last10_home <chr>, last10_road <chr>, ot <chr>, three_pts_or_less <chr>,
#> #   ten_pts_or_more <chr>, long_home_streak <int>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_team_boxscores(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 342 × 29
#>       team_id team_city     team_name    team_tricode team_slug    side  minutes
#>         <int> <chr>         <chr>        <chr>        <chr>        <chr> <chr>  
#>  1 1610612765 Detroit       Pistons      DET          pistons      home  240:00 
#>  2 1610612738 Boston        Celtics      BOS          celtics      away  240:00 
#>  3 1610612752 New York      Knicks       NYK          knicks       home  240:00 
#>  4 1610612755 Philadelphia  76ers        PHI          sixers       away  240:00 
#>  5 1610612759 San Antonio   Spurs        SAS          spurs        home  240:00 
#>  6 1610612760 Oklahoma City Thunder      OKC          thunder      away  240:00 
#>  7 1610612748 Miami         Heat         MIA          heat         home  240:00 
#>  8 1610612750 Minnesota     Timberwolves MIN          timberwolves away  240:00 
#>  9 1610612747 Los Angeles   Lakers       LAL          lakers       home  240:00 
#> 10 1610612744 Golden State  Warriors     GSW          warriors     away  240:00 
#> # ℹ 332 more rows
#> # ℹ 22 more variables: field_goals_made <int>, field_goals_attempted <int>,
#> #   field_goals_percentage <dbl>, three_pointers_made <int>,
#> #   three_pointers_attempted <int>, three_pointers_percentage <dbl>,
#> #   free_throws_made <int>, free_throws_attempted <int>,
#> #   free_throws_percentage <dbl>, rebounds_offensive <int>,
#> #   rebounds_defensive <int>, rebounds_total <int>, assists <int>, …
# }
# \donttest{
  # Interactive only: this help page holds 18 loaders, each a download.
  try(load_nba_stats_team_season_stats(seasons = most_recent_nba_stats_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.2.0 ──
#> # A tibble: 420 × 188
#>       team_id team_name       gp     w     l w_pct   min e_off_rating off_rating
#>         <int> <chr>        <int> <int> <int> <dbl> <dbl>        <dbl>      <dbl>
#>  1 1610612737 Atlanta Haw…    12     7     5 0.583   576        111.        114.
#>  2 1610612738 Boston Celt…    12    10     2 0.833   581        115.        117.
#>  3 1610612751 Brooklyn Ne…    11     3     8 0.273   533        107.        109.
#>  4 1610612766 Charlotte H…    11     4     7 0.364   528         99.5       102.
#>  5 1610612741 Chicago Bul…    10     1     9 0.1     480        107.        109.
#>  6 1610612739 Cleveland C…    12     6     6 0.5     581        114.        116.
#>  7 1610612742 Dallas Mave…    11     7     4 0.636   528        113.        115.
#>  8 1610612743 Denver Nugg…    10     6     4 0.6     485        115.        116.
#>  9 1610612765 Detroit Pis…    10     7     3 0.7     480        112.        113.
#> 10 1610612744 Golden Stat…    12     8     4 0.667   581        118.        118.
#> # ℹ 410 more rows
#> # ℹ 179 more variables: e_def_rating <dbl>, def_rating <dbl>,
#> #   e_net_rating <dbl>, net_rating <dbl>, ast_pct <dbl>, ast_to <dbl>,
#> #   ast_ratio <dbl>, oreb_pct <dbl>, dreb_pct <dbl>, reb_pct <dbl>,
#> #   tm_tov_pct <dbl>, efg_pct <dbl>, ts_pct <dbl>, e_pace <dbl>, pace <dbl>,
#> #   pace_per40 <dbl>, poss <int>, pie <dbl>, gp_rank <int>, w_rank <int>,
#> #   l_rank <int>, w_pct_rank <int>, min_rank <int>, off_rating_rank <int>, …
# }