Skip to contents

Loads season-level NCAA men's college basketball play-by-play. One row per event, with reconstructed 5-man lineups, possession numbering, shot context (transition/paint/second-chance), and an ESPN game-id crosswalk. Produced by the sdv-py ncaa_mbb engine (stats.ncaa.org play-by-play parsed, cleaned, and enriched); backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_pbp release tag as csv.gz/parquet/rds.

Loads shot-chart events for NCAA men's college basketball – one row per field goal attempt, with court coordinates, distance, shot zone, and made/missed result. Coordinates are only available from the 2019 season onward (stats.ncaa.org did not publish shot-location data before then), so seasons has a 2019 floor even though most sibling NCAA MBB datasets start at 2010. Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_shots release tag as csv.gz/parquet/rds.

Loads reconstructed 5-man lineup stints for NCAA men's college basketball – one row per contiguous stretch a specific 5-player lineup was on court for a team, with on/off scoring, shooting, and rebounding splits plus the matching opponent (opp_*) splits. Produced by the sdv-py ncaa_mbb engine's lineup reconstructor; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_lineups release tag as csv.gz/parquet/rds.

Loads reconstructed 10-man matchup stints (the home 5-man lineup crossed with the away 5-man lineup) for NCAA men's college basketball – one row per contiguous stretch both lineups were on court together, with the score at stint start/end and both team's lineup rosters. Produced by the sdv-py ncaa_mbb engine's lineup reconstructor; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_matchup_stints release tag as csv.gz/parquet/rds.

Loads possession-level data for NCAA men's college basketball – one row per offensive possession, with the on-court 5-man lineups for both teams, points scored, assist/transition/garbage-time flags, and the possession's first and last event types. Produced by the sdv-py ncaa_mbb engine's possession detector; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_possessions release tag as csv.gz/parquet/rds.

Loads within-team regularized adjusted plus-minus (RAPM) ratings for NCAA men's college basketball – one row per player-team-season, fit against teammate lineup variation within that team's own possessions (not a cross-team national RAPM). Produced by the sdv-py ncaa_mbb engine's RAPM model on top of the reconstructed lineup/possession data; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_rapm_within_team release tag as csv.gz/parquet/rds.

Loads league-wide regularized adjusted plus-minus (RAPM) ratings for NCAA men's college basketball – one row per player-season, fit against lineup variation across all Division I stints for that season (not a within-team RAPM). Produced by the sdv-py ncaa_mbb engine's league-wide stint-ridge RAPM solver (Torvik-gated to Division I teams) on top of the reconstructed lineup/possession data; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_rapm release tag as csv.gz/parquet/rds.

Loads advanced per-player, per-game box scores for NCAA men's college basketball – one row per player-game, with shooting splits by zone (rim/mid/3), transition and half-court splits, assisted-vs-unassisted splits, and shot-zone efficiency rates. A superset of the traditional box score (points/rebounds/assists/steals/blocks/turnovers/fouls are included alongside the advanced splits). Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_player_box release tag as csv.gz/parquet/rds.

Loads advanced per-team, per-game box scores for NCAA men's college basketball – one row per team-game, with offensive/defensive ratings, shot-zone rates and efficiency (rim/mid/3), rebounding/assist/turnover rates, and the matching opponent (d_*) splits. Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_team_box release tag as csv.gz/parquet/rds.

Loads a lightweight season roster for NCAA men's college basketball – one row per player-team-season with a games-played count. For the fuller roster (jersey, class, position, height, hometown, high school), use load_ncaa_mbb_team_rosters(). Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_rosters release tag as csv.gz/parquet/rds.

Loads the full season roster for NCAA men's college basketball – one row per player-team-season with jersey number, class year, position, height, hometown, high school, and games played/started. Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_team_rosters release tag as csv.gz/parquet/rds.

Loads season schedules/results for NCAA men's college basketball – one row per game with home/away teams and final scores. Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_schedule release tag as csv.gz/parquet/rds.

Loads the season-level stats.ncaa.org team-id / conference crosswalk for NCAA men's college basketball – one row per team-season. Useful for joining ncaa_team_id columns on the other ncaa_mbb_* datasets back to a team name and conference. Produced by the sdv-py ncaa_mbb engine; backed by the ncaa-mbb-hoops-data pipeline, published to the ncaa_mbb_team_ids release tag as csv.gz/parquet/rds.

Usage

load_ncaa_mbb_pbp(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_shots(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_lineups(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_matchup_stints(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_possessions(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_rapm_within_team(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_rapm(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_player_box(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_team_box(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_rosters(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_team_rosters(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_schedule(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_ncaa_mbb_team_ids(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit season-ending years for NCAA men's college basketball (e.g. 2024 for the 2023-24 season). Published coverage runs 2010 through the most recent season, with no gaps. Pass seasons = TRUE for every published season. (Min: 2010)

...

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 play-by-play event.

col_nametypesdescription
game_datecharacterDate the game was played (MM/DD/YYYY).
homecharacterHome team name.
awaycharacterAway team name.
periodintegerPeriod of the game (1-2 halves pre-2016, 1-4 quarters 2016+).
clockcharacterGame clock remaining in the period (MM:SS).
game_timecharacterElapsed game time (MM:SS).
game_secondsintegerElapsed game time in seconds from tip-off.
home_scoreintegerHome team score after the event.
away_scoreintegerAway team score after the event.
event_teamcharacterTeam name credited with the play event.
event_descriptioncharacterRaw play-by-play text description.
player_1characterPrimary player name involved in the event (raw, upper-cased).
player_2characterSecondary player name involved in the event (raw, upper-cased).
event_typecharacterPlay event type label (e.g. 'made Layup', 'won Jumpball').
event_resultcharacterEvent result ('made', 'missed', or NA for non-shot events).
shot_valueintegerPoint value of a shot event (2 or 3).
event_lengthintegerDuration of the event in seconds.
poss_numintegerSequential possession number within the game.
poss_teamcharacterTeam name on offense for the possession.
poss_lengthintegerDuration of the possession in seconds.
is_transitionlogicalWhether the play occurred in transition.
home_1characterHome lineup slot 1 player name (raw).
home_2characterHome lineup slot 2 player name (raw).
home_3characterHome lineup slot 3 player name (raw).
home_4characterHome lineup slot 4 player name (raw).
home_5characterHome lineup slot 5 player name (raw).
away_1characterAway lineup slot 1 player name (raw).
away_2characterAway lineup slot 2 player name (raw).
away_3characterAway lineup slot 3 player name (raw).
away_4characterAway lineup slot 4 player name (raw).
away_5characterAway lineup slot 5 player name (raw).
statuscharacterRow QA status flag ('CLEAN' or a data-quality note).
is_garbage_timelogicalWhether the event occurred in garbage time.
sub_deviateintegerSubstitution-inference deviation counter used by the lineup reconstructor.
contest_idcharacterUnique stats.ncaa.org contest identifier.
home_ncaa_team_idcharacterstats.ncaa.org team identifier for the home team.
home_espn_team_idcharacterESPN team identifier for the home team.
away_ncaa_team_idcharacterstats.ncaa.org team identifier for the away team.
away_espn_team_idcharacterESPN team identifier for the away team.
event_team_ncaa_team_idcharacterstats.ncaa.org team identifier for the event team.
event_team_espn_team_idcharacterESPN team identifier for the event team.
poss_team_ncaa_team_idcharacterstats.ncaa.org team identifier for the possession team.
poss_team_espn_team_idcharacterESPN team identifier for the possession team.
player_1_idcharacterstats.ncaa.org player identifier for player_1.
player_1_clean_namecharacterCleaned/title-cased display name for player_1.
player_2_idcharacterstats.ncaa.org player identifier for player_2.
player_2_clean_namecharacterCleaned/title-cased display name for player_2.
home_1_player_idcharacterstats.ncaa.org player identifier for home lineup slot 1.
home_1_clean_namecharacterCleaned display name for home lineup slot 1.
home_2_player_idcharacterstats.ncaa.org player identifier for home lineup slot 2.
home_2_clean_namecharacterCleaned display name for home lineup slot 2.
home_3_player_idcharacterstats.ncaa.org player identifier for home lineup slot 3.
home_3_clean_namecharacterCleaned display name for home lineup slot 3.
home_4_player_idcharacterstats.ncaa.org player identifier for home lineup slot 4.
home_4_clean_namecharacterCleaned display name for home lineup slot 4.
home_5_player_idcharacterstats.ncaa.org player identifier for home lineup slot 5.
home_5_clean_namecharacterCleaned display name for home lineup slot 5.
away_1_player_idcharacterstats.ncaa.org player identifier for away lineup slot 1.
away_1_clean_namecharacterCleaned display name for away lineup slot 1.
away_2_player_idcharacterstats.ncaa.org player identifier for away lineup slot 2.
away_2_clean_namecharacterCleaned display name for away lineup slot 2.
away_3_player_idcharacterstats.ncaa.org player identifier for away lineup slot 3.
away_3_clean_namecharacterCleaned display name for away lineup slot 3.
away_4_player_idcharacterstats.ncaa.org player identifier for away lineup slot 4.
away_4_clean_namecharacterCleaned display name for away lineup slot 4.
away_5_player_idcharacterstats.ncaa.org player identifier for away lineup slot 5.
away_5_clean_namecharacterCleaned display name for away lineup slot 5.
espn_game_idcharacterESPN game identifier crosswalked to this contest.
is_fastbreaklogicalWhether the play was a fastbreak possession.
is_from_turnoverlogicalWhether the possession began off a turnover.
is_paintlogicalWhether the shot was taken in the paint.
is_second_chancelogicalWhether the possession followed an offensive rebound.
assist_playercharacterCleaned display name of the player credited with the assist.
ft_numberintegerFree throw number within the trip to the line (1st, 2nd, ...).
ft_attemptsintegerTotal free throws awarded on the trip to the line.
foul_classcharacterFoul classification ('personal', 'technical', etc.).
is_shooting_foullogicalWhether the foul was a shooting foul.
is_looseball_foullogicalWhether the foul was a loose-ball foul.
is_one_and_onelogicalWhether the free throw trip was a one-and-one bonus.
is_flagrantlogicalWhether the foul was flagrant.
foul_tech_classcharacterTechnical foul sub-classification (e.g. 'administrative').
ft_awardedintegerTotal free throws awarded for the foul.
turnover_typecharacterTurnover sub-type (e.g. 'shotclock', 'travel').
is_team_turnoverlogicalWhether the turnover is a team turnover (no individual credited).
timeout_typecharacterTimeout sub-type (e.g. 'short', 'full').
challenge_outcomecharacterReplay-challenge outcome, when the event was a review.
seasonintegerSeason identifier (4-digit season-ending year).

Returns a hoopR_data tibble with one row per shot attempt.

col_nametypesdescription
seasonintegerSeason identifier (4-digit season-ending year).
team_idcharacterTeam name of the shooting team (raw scrape field; despite the column name it holds the team name string, not a numeric id – see ncaa_team_id / espn_team_id for the crosswalked ids).
shooter_idcharacterRaw scrape key for the shooter (see shooter_player_id for the stats.ncaa.org id).
shot_xnumericShot chart X coordinate.
shot_ynumericShot chart Y coordinate.
dist_ftnumericShot distance from the basket, in feet.
shot_zonecharacterShot zone label (e.g. 'abovebreak3', 'rim').
shot_typecharacterShot type label from the source play description.
madelogicalWhether the shot was made.
point_valueintegerPoint value of the shot (2 or 3).
periodlogicalPeriod of the game (1-2 halves pre-2016, 1-4 quarters 2016+).
sec_leftlogicalSeconds remaining in the period at the time of the shot.
sourcecharacterSource system for the shot record (e.g. 'ncaa').
contest_idcharacterUnique stats.ncaa.org contest identifier.
ncaa_team_idcharacterstats.ncaa.org team identifier for the shooting team.
espn_team_idcharacterESPN team identifier for the shooting team.
shooter_player_idcharacterstats.ncaa.org player identifier for the shooter.
shooter_clean_namecharacterCleaned display name for the shooter.
espn_game_idcharacterESPN game identifier crosswalked to this contest.

Returns a hoopR_data tibble with one row per lineup stint.

col_nametypesdescription
lineup_keycharacterHash key uniquely identifying the 5-player lineup.
datecharacterGame date/time (ISO 8601).
location_typecharacterHome/away designation for team in this stint ('Home' or 'Away').
teamcharacterTeam name.
team_yearintegerSeason-start calendar year for the stint.
opponentcharacterOpponent team name.
lineup_idcharacterHuman-readable lineup identifier built from the five player codes.
start_minnumericGame-clock minute the lineup entered.
end_minnumericGame-clock minute the lineup exited.
duration_minsnumericMinutes the lineup was on court together.
player_1characterLineup slot 1 player display name ('Last, First').
player_2characterLineup slot 2 player display name ('Last, First').
player_3characterLineup slot 3 player display name ('Last, First').
player_4characterLineup slot 4 player display name ('Last, First').
player_5characterLineup slot 5 player display name ('Last, First').
players_incharacterPlayer(s) substituted into the lineup at the start of the stint.
players_outcharacterPlayer(s) substituted out of the lineup at the start of the stint.
start_scoredintegerTeam's points scored at the moment the lineup entered.
start_allowedintegerPoints allowed at the moment the lineup entered.
end_scoredintegerTeam's points scored at the moment the lineup exited.
end_allowedintegerPoints allowed at the moment the lineup exited.
start_diffintegerScore differential at the moment the lineup entered.
end_diffintegerScore differential at the moment the lineup exited.
player_count_errorlogicalFlag set when fewer/more than 5 players were reconstructed for the stint.
possintegerPossessions played by the lineup.
ptsintegerPoints scored.
plus_minusintegerPoint differential while the lineup was on court.
fgaintegerField goal attempts by the lineup.
fgmintegerField goals made by the lineup.
rimaintegerRim-area shot attempts.
rimmintegerRim-area shots made.
rim_astintegerRim-area makes that came off an assist.
midaintegerMid-range shot attempts.
midmintegerMid-range shots made.
mid_astintegerMid-range makes that came off an assist.
fg2ainteger2-point field goal attempts by the lineup.
fg2minteger2-point field goals made by the lineup.
tpainteger3-point field goal attempts.
tpminteger3-point field goals made.
tp_astinteger3-pointers made that came off an assist.
ftaintegerFree throw attempts by the lineup.
ftmintegerFree throws made by the lineup.
orbintegerOffensive rebounds.
drbintegerDefensive rebounds.
tointegerTurnovers by the lineup.
stlintegerSteals.
blkintegerBlocks.
astintegerAssists.
foulintegerPersonal fouls.
opp_possintegerOpponent possessions while this lineup was on court.
opp_ptsintegerOpponent points scored while this lineup was on court.
opp_plus_minusintegerOpponent point differential while this lineup was on court (negative of plus_minus).
opp_fgaintegerOpponent field goal attempts.
opp_fgmintegerOpponent field goals made.
opp_rimaintegerOpponent rim-area shot attempts.
opp_rimmintegerOpponent rim-area shots made.
opp_rim_astintegerOpponent rim-area makes that came off an assist.
opp_midaintegerOpponent mid-range shot attempts.
opp_midmintegerOpponent mid-range shots made.
opp_mid_astintegerOpponent mid-range makes that came off an assist.
opp_fg2aintegerOpponent 2-point field goal attempts.
opp_fg2mintegerOpponent 2-point field goals made.
opp_tpaintegerOpponent 3-point field goal attempts.
opp_tpmintegerOpponent 3-point field goals made.
opp_tp_astintegerOpponent 3-pointers made that came off an assist.
opp_ftaintegerOpponent free throw attempts.
opp_ftmintegerOpponent free throws made.
opp_orbintegerOpponent offensive rebounds.
opp_drbintegerOpponent defensive rebounds.
opp_tointegerOpponent turnovers.
opp_stlintegerOpponent steals.
opp_blkintegerOpponent blocks.
opp_astintegerOpponent assists.
opp_foulintegerOpponent personal fouls.
stint_numintegerSequential stint number for this lineup within the game.
contest_idcharacterUnique stats.ncaa.org contest identifier.
seasonintegerSeason identifier (4-digit season-ending year).

Returns a hoopR_data tibble with one row per matchup stint.

col_nametypesdescription
contest_idcharacterUnique stats.ncaa.org contest identifier.
seasonintegerSeason identifier (4-digit season-ending year).
game_datecharacterDate the game was played (MM/DD/YYYY).
homecharacterHome team name.
awaycharacterAway team name.
game_stint_numintegerSequential stint number within the game (all 10-man matchups).
periodintegerPeriod of the game (1-2 halves pre-2016, 1-4 quarters 2016+).
start_secondsintegerElapsed game seconds at the start of the stint.
end_secondsintegerElapsed game seconds at the end of the stint.
duration_secondsintegerDuration of the stint in seconds.
matchup_keycharacterHash key uniquely identifying the home-lineup/away-lineup matchup.
home_lineup_keycharacterHash key for the home team's 5-player lineup.
away_lineup_keycharacterHash key for the away team's 5-player lineup.
home_lineupcharacterPipe-delimited list of the 5 home players on court.
away_lineupcharacterPipe-delimited list of the 5 away players on court.
end_home_scoreintegerHome team score at the end of the stint.
end_away_scoreintegerAway team score at the end of the stint.
n_eventsintegerNumber of play-by-play events within the stint.
n_possessionsintegerNumber of possessions within the stint.
start_home_scoreintegerHome team score at the start of the stint.
start_away_scoreintegerAway team score at the start of the stint.
home_ptsintegerPoints scored by the home team during the stint.
away_ptsintegerPoints scored by the away team during the stint.
home_1characterHome lineup slot 1 player name (raw).
home_2characterHome lineup slot 2 player name (raw).
home_3characterHome lineup slot 3 player name (raw).
home_4characterHome lineup slot 4 player name (raw).
home_5characterHome lineup slot 5 player name (raw).
away_1characterAway lineup slot 1 player name (raw).
away_2characterAway lineup slot 2 player name (raw).
away_3characterAway lineup slot 3 player name (raw).
away_4characterAway lineup slot 4 player name (raw).
away_5characterAway lineup slot 5 player name (raw).

Returns a hoopR_data tibble with one row per possession.

col_nametypesdescription
game_datecharacterDate the game was played (MM/DD/YYYY).
homecharacterHome team name.
awaycharacterAway team name.
periodintegerPeriod of the game (1-2 halves pre-2016, 1-4 quarters 2016+).
poss_numintegerSequential possession number within the game.
poss_teamcharacterTeam name on offense for the possession.
home_1characterHome lineup slot 1 player name (raw).
home_2characterHome lineup slot 2 player name (raw).
home_3characterHome lineup slot 3 player name (raw).
home_4characterHome lineup slot 4 player name (raw).
home_5characterHome lineup slot 5 player name (raw).
away_1characterAway lineup slot 1 player name (raw).
away_2characterAway lineup slot 2 player name (raw).
away_3characterAway lineup slot 3 player name (raw).
away_4characterAway lineup slot 4 player name (raw).
away_5characterAway lineup slot 5 player name (raw).
home_scoreintegerHome team score after the event.
away_scoreintegerAway team score after the event.
ptsintegerPoints scored.
is_assistedintegerWhether the possession ended in an assisted make.
is_transitionintegerWhether the play occurred in transition.
is_garbage_timeintegerWhether the event occurred in garbage time.
start_event_typecharacterEvent type that started the possession.
first_shot_timeintegerElapsed game seconds at the possession's first shot attempt.
first_shot_typecharacterEvent type of the possession's first shot attempt.
last_event_timeintegerElapsed game seconds at the possession's final event.
last_event_typecharacterEvent type of the possession's final event.
contest_idcharacterUnique stats.ncaa.org contest identifier.
home_ncaa_team_idcharacterstats.ncaa.org team identifier for the home team.
home_espn_team_idcharacterESPN team identifier for the home team.
away_ncaa_team_idcharacterstats.ncaa.org team identifier for the away team.
away_espn_team_idcharacterESPN team identifier for the away team.
poss_team_ncaa_team_idcharacterstats.ncaa.org team identifier for the possession team.
poss_team_espn_team_idcharacterESPN team identifier for the possession team.
home_1_player_idcharacterstats.ncaa.org player identifier for home lineup slot 1.
home_1_clean_namecharacterCleaned display name for home lineup slot 1.
home_2_player_idcharacterstats.ncaa.org player identifier for home lineup slot 2.
home_2_clean_namecharacterCleaned display name for home lineup slot 2.
home_3_player_idcharacterstats.ncaa.org player identifier for home lineup slot 3.
home_3_clean_namecharacterCleaned display name for home lineup slot 3.
home_4_player_idcharacterstats.ncaa.org player identifier for home lineup slot 4.
home_4_clean_namecharacterCleaned display name for home lineup slot 4.
home_5_player_idcharacterstats.ncaa.org player identifier for home lineup slot 5.
home_5_clean_namecharacterCleaned display name for home lineup slot 5.
away_1_player_idcharacterstats.ncaa.org player identifier for away lineup slot 1.
away_1_clean_namecharacterCleaned display name for away lineup slot 1.
away_2_player_idcharacterstats.ncaa.org player identifier for away lineup slot 2.
away_2_clean_namecharacterCleaned display name for away lineup slot 2.
away_3_player_idcharacterstats.ncaa.org player identifier for away lineup slot 3.
away_3_clean_namecharacterCleaned display name for away lineup slot 3.
away_4_player_idcharacterstats.ncaa.org player identifier for away lineup slot 4.
away_4_clean_namecharacterCleaned display name for away lineup slot 4.
away_5_player_idcharacterstats.ncaa.org player identifier for away lineup slot 5.
away_5_clean_namecharacterCleaned display name for away lineup slot 5.
espn_game_idcharacterESPN game identifier crosswalked to this contest.
seasonintegerSeason identifier (4-digit season-ending year).

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

col_nametypesdescription
teamcharacterTeam name.
player_codecharacterPlayer display name as 'Last, First' used as the RAPM join key.
rapm_offnumericWithin-team offensive regularized adjusted plus-minus.
rapm_defnumericWithin-team defensive regularized adjusted plus-minus.
team_off_possnumericTeam offensive possessions used in the RAPM fit.
num_playersintegerNumber of teammates included in the within-team RAPM fit.
rapm_netnumericWithin-team net regularized adjusted plus-minus (rapm_off + rapm_def).
seasonintegerSeason identifier (4-digit season-ending year).
player_idcharacterstats.ncaa.org player identifier.
team_idcharacterUnique team identifier.
person_idcharacterInternal person identifier used to join across seasons/teams.

Returns a hoopR_data tibble with one row per player-season.

col_nametypesdescription
seasonintegerSeason identifier (4-digit season-ending year).
player_idcharacterstats.ncaa.org player identifier.
person_idcharacterInternal person identifier used to join across seasons/teams.
playercharacterPlayer display name ('LAST.FIRST' format).
teamcharacterTeam name.
orapmnumericLeague-wide offensive regularized adjusted plus-minus.
drapmnumericLeague-wide defensive regularized adjusted plus-minus.
rapm_netnumericLeague-wide net regularized adjusted plus-minus (orapm + drapm).
off_possintegerOffensive possessions used in the RAPM fit.
def_possintegerDefensive possessions used in the RAPM fit.
estimandcharacterEstimand tag for the RAPM fit (e.g. 'league' for the Division I stint solve).

Returns a hoopR_data tibble with one row per player-game.

col_nametypesdescription
game_datecharacterDate the game was played (MM/DD/YYYY).
homecharacterHome team name.
awaycharacterAway team name.
teamcharacterTeam name.
playercharacterPlayer name (raw, upper-cased).
minsnumericMinutes played.
o_possnumericOffensive possessions played.
ptsnumericPoints scored.
orbnumericOffensive rebounds.
drbnumericDefensive rebounds.
astnumericAssists.
stlnumericSteals.
blknumericBlocks.
tovnumericTurnovers.
pfnumericPersonal fouls.
ts_pctnumericTrue shooting percentage.
efg_pctnumericEffective field goal percentage.
fgmnumericField goals made by the lineup.
fganumericField goal attempts by the lineup.
fg_pctnumericField goal percentage.
tpmnumeric3-point field goals made.
tpanumeric3-point field goal attempts.
tp_pctnumeric3-point field goal percentage.
ftmnumericFree throws made by the lineup.
ftanumericFree throw attempts by the lineup.
ft_pctnumericFree throw percentage.
rimmnumericRim-area shots made.
rimanumericRim-area shot attempts.
rim_pctnumericRim-area field goal percentage.
midmnumericMid-range shots made.
midanumericMid-range shot attempts.
mid_pctnumericMid-range field goal percentage.
pbackmnumericPost/back-to-basket shots made.
pbackanumericPost/back-to-basket attempts.
pback_pctnumericPost/back-to-basket shooting percentage.
blk_rimnumericBlocked shots at the rim.
blk_midnumericBlocked mid-range shots.
blk_threenumericBlocked 3-point attempts.
pct_fga_transnumericShare of field goal attempts taken in transition.
pct_tpa_transnumericShare of 3-point attempts taken in transition.
pct_rima_transnumericShare of rim-area attempts taken in transition.
pct_fgm_transnumericShare of field goals made in transition.
pct_tpm_transnumericShare of 3-pointers made in transition.
pct_rimm_transnumericShare of rim-area shots made in transition.
pct_fgm_astnumericShare of field goals made that were assisted.
pct_tpm_astnumericShare of 3-pointers made that were assisted.
pct_rimm_astnumericShare of rim-area shots made that were assisted.
pts_transnumericPoints scored in transition.
orb_transnumericOffensive rebounds in transition possessions.
drb_transnumericDefensive rebounds in transition possessions.
ast_transnumericAssists in transition possessions.
stl_transnumericSteals in transition possessions.
blk_transnumericBlocks in transition possessions.
tov_transnumericTurnovers in transition possessions.
ts_pct_transnumericTrue shooting percentage in transition possessions.
efg_pct_transnumericEffective field goal percentage in transition possessions.
fgm_transnumericField goals made in transition possessions.
fga_transnumericField goal attempts in transition possessions.
fg_pct_transnumericField goal percentage in transition possessions.
tpm_transnumeric3-point field goals made in transition possessions.
tpa_transnumeric3-point field goal attempts in transition possessions.
tp_pct_transnumeric3-point field goal percentage in transition possessions.
ftm_transnumericFree throws made in transition possessions.
fta_transnumericFree throw attempts in transition possessions.
ft_pct_transnumericFree throw percentage in transition possessions.
rimm_transnumericRim-area shots made in transition possessions.
rima_transnumericRim-area shot attempts in transition possessions.
rim_pct_transnumericRim-area field goal percentage in transition possessions.
midm_transnumericMid-range shots made in transition possessions.
mida_transnumericMid-range shot attempts in transition possessions.
mid_pct_transnumericMid-range field goal percentage in transition possessions.
pts_halfnumericPoints scored in half-court possessions.
orb_halfnumericOffensive rebounds in half-court possessions.
drb_halfnumericDefensive rebounds in half-court possessions.
ast_halfnumericAssists in half-court possessions.
stl_halfnumericSteals in half-court possessions.
blk_halfnumericBlocks in half-court possessions.
tov_halfnumericTurnovers in half-court possessions.
ts_pct_halfnumericTrue shooting percentage in half-court possessions.
efg_pct_halfnumericEffective field goal percentage in half-court possessions.
fgm_halfnumericField goals made in half-court possessions.
fga_halfnumericField goal attempts in half-court possessions.
fg_pct_halfnumericField goal percentage in half-court possessions.
tpm_halfnumeric3-point field goals made in half-court possessions.
tpa_halfnumeric3-point field goal attempts in half-court possessions.
tp_pct_halfnumeric3-point field goal percentage in half-court possessions.
ftm_halfnumericFree throws made in half-court possessions.
fta_halfnumericFree throw attempts in half-court possessions.
ft_pct_halfnumericFree throw percentage in half-court possessions.
rimm_halfnumericRim-area shots made in half-court possessions.
rima_halfnumericRim-area shot attempts in half-court possessions.
rim_pct_halfnumericRim-area field goal percentage in half-court possessions.
midm_halfnumericMid-range shots made in half-court possessions.
mida_halfnumericMid-range shot attempts in half-court possessions.
mid_pct_halfnumericMid-range field goal percentage in half-court possessions.
pts_astnumericPoints scored off an assisted make.
fgm_astnumericField goals made that came off an assist.
tpm_astnumeric3-point field goals made that came off an assist.
rimm_astnumericRim-area shots made that came off an assist.
midm_astnumericMid-range shots made that came off an assist.
pts_unastnumericPoints scored off an unassisted make.
efg_pct_unastnumericEffective field goal percentage that were unassisted.
fgm_unastnumericField goals made that were unassisted.
fga_unastnumericField goal attempts that were unassisted.
fg_pct_unastnumericField goal percentage that were unassisted.
tpm_unastnumeric3-point field goals made that were unassisted.
tpa_unastnumeric3-point field goal attempts that were unassisted.
tp_pct_unastnumeric3-point field goal percentage that were unassisted.
rimm_unastnumericRim-area shots made that were unassisted.
rima_unastnumericRim-area shot attempts that were unassisted.
rim_pct_unastnumericRim-area field goal percentage that were unassisted.
midm_unastnumericMid-range shots made that were unassisted.
mida_unastnumericMid-range shot attempts that were unassisted.
mid_pct_unastnumericMid-range field goal percentage that were unassisted.
contest_idcharacterUnique stats.ncaa.org contest identifier.
home_ncaa_team_idcharacterstats.ncaa.org team identifier for the home team.
home_espn_team_idcharacterESPN team identifier for the home team.
away_ncaa_team_idcharacterstats.ncaa.org team identifier for the away team.
away_espn_team_idcharacterESPN team identifier for the away team.
team_ncaa_team_idcharacterstats.ncaa.org team identifier.
team_espn_team_idcharacterESPN team identifier.
player_idcharacterstats.ncaa.org player identifier.
clean_namecharacterCleaned/title-cased display name.
espn_game_idcharacterESPN game identifier crosswalked to this contest.
seasonintegerSeason identifier (4-digit season-ending year).

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

col_nametypesdescription
homecharacterHome team name.
awaycharacterAway team name.
teamcharacterTeam name.
minsnumericMinutes played.
o_minsnumericMinutes with the team on offense.
d_minsnumericMinutes with the team on defense.
o_possnumericOffensive possessions played.
d_possnumericDefensive possessions played.
ortgnumericOffensive rating (points per 100 possessions).
drtgnumericDefensive rating (points allowed per 100 possessions).
netrtgnumericNet rating (ortg minus drtg).
ptsnumericPoints scored.
d_ptsnumericPoints allowed.
fganumericField goal attempts by the lineup.
d_fganumericOpponent field goal attempts.
fgmnumericField goals made by the lineup.
d_fgmnumericOpponent field goals made.
tpanumeric3-point field goal attempts.
d_tpanumericOpponent 3-point attempts.
tpmnumeric3-point field goals made.
d_tpmnumericOpponent 3-pointers made.
ftanumericFree throw attempts by the lineup.
d_ftanumericOpponent free throw attempts.
ftmnumericFree throws made by the lineup.
d_ftmnumericOpponent free throws made.
rimanumericRim-area shot attempts.
d_rimanumericOpponent rim-area attempts.
rimmnumericRim-area shots made.
d_rimmnumericOpponent rim-area shots made.
orbnumericOffensive rebounds.
d_orbnumericOpponent offensive rebounds.
drbnumericDefensive rebounds.
d_drbnumericOpponent defensive rebounds.
blknumericBlocks.
d_blknumericOpponent blocks.
tonumericTurnovers by the lineup.
d_tonumericOpponent turnovers.
astnumericAssists.
d_astnumericOpponent assists.
e_possnumericEstimated possessions (alternate possession estimator).
fg_pctnumericField goal percentage.
d_fg_pctnumericOpponent field goal percentage.
tppnumeric3-point field goal percentage.
d_tppnumericOpponent 3-point percentage.
ftpnumericFree throw percentage.
d_ftpnumericOpponent free throw percentage.
efg_pctnumericEffective field goal percentage.
d_efg_pctnumericOpponent effective field goal percentage.
ts_pctnumericTrue shooting percentage.
d_ts_pctnumericOpponent true shooting percentage.
rim_pctnumericRim-area field goal percentage.
d_rim_pctnumericOpponent rim-area field goal percentage.
mid_pctnumericMid-range field goal percentage.
d_mid_pctnumericOpponent mid-range field goal percentage.
tp_ratenumericShare of shot attempts taken from 3-point range.
d_tp_ratenumericOpponent share of shot attempts from 3-point range.
rim_ratenumericShare of shot attempts taken at the rim.
d_rim_ratenumericOpponent share of shot attempts at the rim.
mid_ratenumericShare of shot attempts taken mid-range.
d_mid_ratenumericOpponent share of shot attempts mid-range.
ft_ratenumericFree throw rate (FTA per FGA).
d_ft_ratenumericOpponent free throw rate.
ast_ratenumericAssist rate.
d_ast_ratenumericOpponent assist rate.
to_ratenumericTurnover rate.
d_to_ratenumericOpponent turnover rate.
blk_ratenumericBlock rate.
o_blk_ratenumericOffensive possessions ending in a block allowed, as a rate.
orb_pctnumericOffensive rebound percentage.
drb_pctnumericDefensive rebound percentage.
time_per_possnumericAverage seconds per possession.
d_time_per_possnumericOpponent average seconds per possession.
contest_idcharacterUnique stats.ncaa.org contest identifier.
home_ncaa_team_idcharacterstats.ncaa.org team identifier for the home team.
home_espn_team_idcharacterESPN team identifier for the home team.
away_ncaa_team_idcharacterstats.ncaa.org team identifier for the away team.
away_espn_team_idcharacterESPN team identifier for the away team.
team_ncaa_team_idcharacterstats.ncaa.org team identifier.
team_espn_team_idcharacterESPN team identifier.
espn_game_idcharacterESPN game identifier crosswalked to this contest.
seasonintegerSeason identifier (4-digit season-ending year).

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

col_nametypesdescription
seasonintegerSeason identifier (4-digit season-ending year).
teamcharacterTeam name.
playercharacterPlayer name (raw, upper-cased).
gamesintegerGames played (season total).

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

col_nametypesdescription
seasonintegerSeason identifier (4-digit season-ending year).
team_idcharacterUnique team identifier.
teamcharacterTeam name.
player_idcharacterstats.ncaa.org player identifier.
playercharacterPlayer name (raw, upper-cased).
clean_namecharacterCleaned/title-cased display name.
namecharacterPlayer full display name.
jerseycharacterJersey number.
classcharacterClass year (e.g. 'Fr.', 'So.', 'Jr.', 'Sr.').
positioncharacterPosition abbreviation.
heightcharacterHeight as a 'feet-inches' string (e.g. '6-1').
ht_inchesintegerHeight in total inches.
hometowncharacterPlayer hometown (city, state).
high_schoolcharacterPlayer high school.
gpcharacterGames played.
gscharacterGames started.

Returns a hoopR_data tibble with one row per game.

col_nametypesdescription
contest_idcharacterUnique stats.ncaa.org contest identifier.
game_datecharacterDate the game was played (MM/DD/YYYY).
homecharacterHome team name.
awaycharacterAway team name.
home_scoreintegerHome team score after the event.
away_scoreintegerAway team score after the event.
seasonintegerSeason identifier (4-digit season-ending year).

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

col_nametypesdescription
teamcharacterTeam name.
conferencecharacterConference affiliation.
idcharacterstats.ncaa.org team identifier.
seasonintegerSeason identifier (4-digit season-ending year).

Details

League-wide regularized adjusted plus-minus – a single ridge fit over all Division I stints per season, distinct from load_ncaa_mbb_rapm_within_team()'s within-team fit. Published coverage runs seasons 2011 through 2026.

Author

Saiem Gilani

Examples

# \donttest{
  try(load_ncaa_mbb_pbp(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 3,075,470 × 87
#>    game_date  home    away        period clock game_time game_seconds home_score
#>    <chr>      <chr>   <chr>        <int> <chr> <chr>            <int>      <int>
#>  1 11/03/2025 Buffalo Southern M…      1 19:59 00:01                1          0
#>  2 11/03/2025 Buffalo Southern M…      1 19:59 00:01                1          0
#>  3 11/03/2025 Buffalo Southern M…      1 19:37 00:23               23          3
#>  4 11/03/2025 Buffalo Southern M…      1 19:03 00:57               57          3
#>  5 11/03/2025 Buffalo Southern M…      1 18:50 01:10               70          3
#>  6 11/03/2025 Buffalo Southern M…      1 18:46 01:14               74          3
#>  7 11/03/2025 Buffalo Southern M…      1 18:39 01:21               81          3
#>  8 11/03/2025 Buffalo Southern M…      1 18:39 01:21               81          3
#>  9 11/03/2025 Buffalo Southern M…      1 18:32 01:28               88          3
#> 10 11/03/2025 Buffalo Southern M…      1 18:28 01:32               92          3
#> # ℹ 3,075,460 more rows
#> # ℹ 79 more variables: away_score <int>, event_team <chr>,
#> #   event_description <chr>, player_1 <chr>, player_2 <chr>, event_type <chr>,
#> #   event_result <chr>, shot_value <int>, event_length <int>, poss_num <int>,
#> #   poss_team <chr>, poss_length <int>, is_transition <lgl>, home_1 <chr>,
#> #   home_2 <chr>, home_3 <chr>, home_4 <chr>, home_5 <chr>, away_1 <chr>,
#> #   away_2 <chr>, away_3 <chr>, away_4 <chr>, away_5 <chr>, status <chr>, …
# }
# \donttest{
  try(load_ncaa_mbb_shots(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 740,861 × 19
#>    season team_id     shooter_id shot_x shot_y dist_ft shot_zone shot_type made 
#>     <int> <chr>       <chr>       <dbl>  <dbl>   <dbl> <chr>     <chr>     <lgl>
#>  1   2026 Buffalo     RySabol     -12.5  23.2    26.4  abovebre… unknown   TRUE 
#>  2   2026 Buffalo     NoBatchel…   -9    25.1    26.6  abovebre… unknown   FALSE
#>  3   2026 Buffalo     RySabol     -15.5  21.3    26.4  abovebre… unknown   FALSE
#>  4   2026 Buffalo     AnBrizzi    -19.5  19.4    27.5  abovebre… unknown   FALSE
#>  5   2026 Southern M… IsTaveras    -2.5   4.4     5.06 paint     unknown   TRUE 
#>  6   2026 Buffalo     DaFreitag    10.5   3.46   11.1  paint     unknown   TRUE 
#>  7   2026 Southern M… BrCarruth    23     5.34   23.6  corner3   unknown   FALSE
#>  8   2026 Buffalo     DaFreitag    15.5  20.4    25.6  abovebre… unknown   FALSE
#>  9   2026 Southern M… TyWeeks       1    14.7    14.8  paint     unknown   TRUE 
#> 10   2026 Southern M… BrCarruth    -1     7.22    7.29 paint     unknown   TRUE 
#> # ℹ 740,851 more rows
#> # ℹ 10 more variables: point_value <int>, period <???>, sec_left <???>,
#> #   source <chr>, contest_id <chr>, ncaa_team_id <chr>, espn_team_id <chr>,
#> #   shooter_player_id <chr>, shooter_clean_name <chr>, espn_game_id <chr>
# }
# \donttest{
  try(load_ncaa_mbb_lineups(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 288,918 × 77
#>    lineup_key   date  location_type team  team_year opponent lineup_id start_min
#>    <chr>        <chr> <chr>         <chr>     <int> <chr>    <chr>         <dbl>
#>  1 cb9dcbee024… 2025… Home          Buff…      2025 Souther… AnBrizzi…      0   
#>  2 d6d69475989… 2025… Home          Buff…      2025 Souther… DaFreita…      4.3 
#>  3 cf3a504da8c… 2025… Home          Buff…      2025 Souther… AnBrizzi…      5.35
#>  4 c911894db9e… 2025… Home          Buff…      2025 Souther… AnBrizzi…      8.18
#>  5 6f492046817… 2025… Home          Buff…      2025 Souther… AnBrizzi…      9.18
#>  6 2e0ff952512… 2025… Home          Buff…      2025 Souther… DeTalton…     12.1 
#>  7 894b30a0fa2… 2025… Home          Buff…      2025 Souther… DaFreita…     14.0 
#>  8 819c757268b… 2025… Home          Buff…      2025 Souther… AnBrizzi…     16.4 
#>  9 aecd97e9b95… 2025… Home          Buff…      2025 Souther… AnBrizzi…     18.0 
#> 10 9e01a276acf… 2025… Home          Buff…      2025 Souther… AnBrizzi…     18.2 
#> # ℹ 288,908 more rows
#> # ℹ 69 more variables: end_min <dbl>, duration_mins <dbl>, player_1 <chr>,
#> #   player_2 <chr>, player_3 <chr>, player_4 <chr>, player_5 <chr>,
#> #   players_in <chr>, players_out <chr>, start_scored <int>,
#> #   start_allowed <int>, end_scored <int>, end_allowed <int>, start_diff <int>,
#> #   end_diff <int>, player_count_error <???>, poss <int>, pts <int>,
#> #   plus_minus <int>, fga <int>, fgm <int>, rima <int>, rimm <int>, …
# }
# \donttest{
  try(load_ncaa_mbb_matchup_stints(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 210,508 × 33
#>    contest_id season game_date  home   away  game_stint_num period start_seconds
#>    <chr>       <int> <chr>      <chr>  <chr>          <int>  <int>         <int>
#>  1 6388769      2026 11/03/2025 Buffa… Sout…              1      1             1
#>  2 6388769      2026 11/03/2025 Buffa… Sout…              2      1           263
#>  3 6388769      2026 11/03/2025 Buffa… Sout…              3      1           287
#>  4 6388769      2026 11/03/2025 Buffa… Sout…              4      1           321
#>  5 6388769      2026 11/03/2025 Buffa… Sout…              5      1           463
#>  6 6388769      2026 11/03/2025 Buffa… Sout…              6      1           512
#>  7 6388769      2026 11/03/2025 Buffa… Sout…              7      1           599
#>  8 6388769      2026 11/03/2025 Buffa… Sout…              8      1           655
#>  9 6388769      2026 11/03/2025 Buffa… Sout…              9      1           757
#> 10 6388769      2026 11/03/2025 Buffa… Sout…             10      1           856
#> # ℹ 210,498 more rows
#> # ℹ 25 more variables: end_seconds <int>, duration_seconds <int>,
#> #   matchup_key <chr>, home_lineup_key <chr>, away_lineup_key <chr>,
#> #   home_lineup <chr>, away_lineup <chr>, end_home_score <int>,
#> #   end_away_score <int>, n_events <int>, n_possessions <int>,
#> #   start_home_score <int>, start_away_score <int>, home_pts <int>,
#> #   away_pts <int>, home_1 <chr>, home_2 <chr>, home_3 <chr>, home_4 <chr>, …
# }
# \donttest{
  try(load_ncaa_mbb_possessions(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 878,168 × 56
#>    game_date  home   away  period poss_num poss_team home_1 home_2 home_3 home_4
#>    <chr>      <chr>  <chr>  <int>    <int> <chr>     <chr>  <chr>  <chr>  <chr> 
#>  1 11/03/2025 Buffa… Sout…      1        1 Buffalo   ANGEL… DANIE… NOAH.… RYAN.…
#>  2 11/03/2025 Buffa… Sout…      1        2 Southern… ANGEL… DANIE… NOAH.… RYAN.…
#>  3 11/03/2025 Buffa… Sout…      1        3 Buffalo   ANGEL… DANIE… NOAH.… RYAN.…
#>  4 11/03/2025 Buffa… Sout…      1        4 Southern… ANGEL… DANIE… NOAH.… RYAN.…
#>  5 11/03/2025 Buffa… Sout…      1        5 Buffalo   ANGEL… DANIE… NOAH.… RYAN.…
#>  6 11/03/2025 Buffa… Sout…      1        6 Southern… ANGEL… DANIE… NOAH.… RYAN.…
#>  7 11/03/2025 Buffa… Sout…      1        7 Buffalo   ANGEL… DANIE… NOAH.… RYAN.…
#>  8 11/03/2025 Buffa… Sout…      1        8 Southern… ANGEL… DANIE… NOAH.… RYAN.…
#>  9 11/03/2025 Buffa… Sout…      1        9 Buffalo   ANGEL… DANIE… NOAH.… RYAN.…
#> 10 11/03/2025 Buffa… Sout…      1       10 Southern… ANGEL… DANIE… NOAH.… RYAN.…
#> # ℹ 878,158 more rows
#> # ℹ 46 more variables: home_5 <chr>, away_1 <chr>, away_2 <chr>, away_3 <chr>,
#> #   away_4 <chr>, away_5 <chr>, home_score <int>, away_score <int>, pts <int>,
#> #   is_assisted <int>, is_transition <int>, is_garbage_time <int>,
#> #   start_event_type <chr>, first_shot_time <int>, first_shot_type <chr>,
#> #   last_event_time <int>, last_event_type <chr>, contest_id <chr>,
#> #   home_ncaa_team_id <chr>, home_espn_team_id <chr>, …
# }
# \donttest{
  try(load_ncaa_mbb_rapm_within_team(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 4,130 × 11
#>    team  player_code rapm_off rapm_def team_off_poss num_players rapm_net season
#>    <chr> <chr>          <dbl>    <dbl>         <dbl>       <int>    <dbl>  <int>
#>  1 A&M-… Williams, …   1.57     0.316           2006          14    1.26    2026
#>  2 A&M-… Gibson, Ma…  -0.448   -2.76            2006          14    2.31    2026
#>  3 A&M-… Shogbonyo,…   1.03     0.0696          2006          14    0.961   2026
#>  4 A&M-… Houston, DA  -0.750   -1.88            2006          14    1.13    2026
#>  5 A&M-… Evran, Cen…  -0.379   -2.85            2006          14    2.47    2026
#>  6 A&M-… Yetna, Fra…  -0.304    1.51            2006          14   -1.81    2026
#>  7 A&M-… Torbor, Leo  -2.37    -0.995           2006          14   -1.37    2026
#>  8 A&M-… Michelini-…  -0.0436  -0.657           2006          14    0.613   2026
#>  9 A&M-… Parker, Kam  -1.82     0.159           2006          14   -1.97    2026
#> 10 A&M-… Haire, Jad…  -2.76    -1.58            2006          14   -1.18    2026
#> # ℹ 4,120 more rows
#> # ℹ 3 more variables: player_id <chr>, team_id <chr>, person_id <chr>
# }
# \donttest{
  try(load_ncaa_mbb_rapm(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 4,974 × 11
#>    season player_id person_id     player     team  orapm drapm rapm_net off_poss
#>     <int> <chr>     <chr>         <chr>      <chr> <dbl> <dbl>    <dbl>    <int>
#>  1   2026 10803749  pd7efe0f13f3f YAXEL.LEN… Mich…  8.70  6.96    15.7      2132
#>  2   2026 9331813   pc795a21e83de FLORY.BID… Kans…  5.10  7.97    13.1      1867
#>  3   2026 10801791  p102e7027e3ca HENRI.VEE… Nort…  6.24  6.47    12.7      1668
#>  4   2026 10804007  pc83cc20ae61e MJ.COLLINS Utah…  6.84  4.94    11.8      1869
#>  5   2026 10801396  p4f3bc1812d7e JAKOBI.GI… Tenn…  9.17  2.08    11.2      2183
#>  6   2026 9336819   pebaa72113554 FLETCHER.… Purd…  5.96  4.64    10.6      1882
#>  7   2026 10809734  p3a7224d3eee5 KEATON.WA… Illi…  7.65  2.71    10.4      1996
#>  8   2026 9334537   p9fb8e9596d89 JEREMY.FE… Mich…  4.21  5.65     9.86     1937
#>  9   2026 9336991   pd9e78de171de ROBBIE.AV… Sain…  6.02  3.68     9.71     1654
#> 10   2026 9324443   p92da0d5d80ba JOSHUA.JE… Iowa…  5.80  3.81     9.60     1857
#> # ℹ 4,964 more rows
#> # ℹ 2 more variables: def_poss <int>, estimand <chr>
# }
# \donttest{
  try(load_ncaa_mbb_player_box(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 127,465 × 125
#>    game_date home  away  team  player  mins o_poss   pts   orb   drb   ast   stl
#>    <chr>     <chr> <chr> <chr> <chr>  <dbl>  <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#>  1 11/03/20… Buff… Sout… Buff… ANGEL… 33.1      55    18     0     3     3     1
#>  2 11/03/20… Buff… Sout… Buff… DANIE… 21.9      37     7     3     0     1     1
#>  3 11/03/20… Buff… Sout… Buff… DERRI… 22.8      38     4     0     2     4     2
#>  4 11/03/20… Buff… Sout… Buff… EZRA.… 19.2      31     6     0     2     1     0
#>  5 11/03/20… Buff… Sout… Buff… KYLE.… 10.2      14     4     3     1     0     1
#>  6 11/03/20… Buff… Sout… Buff… MIKHA…  4.67      6     0     1     0     0     0
#>  7 11/03/20… Buff… Sout… Buff… NOAH.… 30.8      52    12     6     5     2     3
#>  8 11/03/20… Buff… Sout… Buff… OMAR.…  1.53      3     0     0     0     0     0
#>  9 11/03/20… Buff… Sout… Buff… RYAN.… 34.9      59    32     0     2     4     0
#> 10 11/03/20… Buff… Sout… Buff… TIM.O… 20.7      35     2     0     1     1     0
#> # ℹ 127,455 more rows
#> # ℹ 113 more variables: blk <dbl>, tov <dbl>, pf <dbl>, ts_pct <dbl>,
#> #   efg_pct <dbl>, fgm <dbl>, fga <dbl>, fg_pct <dbl>, tpm <dbl>, tpa <dbl>,
#> #   tp_pct <dbl>, ftm <dbl>, fta <dbl>, ft_pct <dbl>, rimm <dbl>, rima <dbl>,
#> #   rim_pct <dbl>, midm <dbl>, mida <dbl>, mid_pct <dbl>, pbackm <dbl>,
#> #   pbacka <dbl>, pback_pct <dbl>, blk_rim <dbl>, blk_mid <dbl>,
#> #   blk_three <dbl>, pct_fga_trans <dbl>, pct_tpa_trans <dbl>, …
# }
# \donttest{
  try(load_ncaa_mbb_team_box(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 12,594 × 81
#>    home   away  team   mins o_mins d_mins o_poss d_poss  ortg  drtg netrtg   pts
#>    <chr>  <chr> <chr> <dbl>  <dbl>  <dbl>  <dbl>  <dbl> <dbl> <dbl>  <dbl> <dbl>
#>  1 Buffa… Sout… Buff…  39.7   20.3   19.4     66     67 129.  118.   10.9     85
#>  2 Buffa… Sout… Sout…  39.7   19.4   20.3     67     66 118.  129.  -10.9     79
#>  3 Peppe… Nort… Nort…  44.8   21.6   23.2     81     82 109.   98.8   9.86    88
#>  4 Peppe… Nort… Pepp…  44.8   23.2   21.6     82     81  98.8 109.   -9.86    81
#>  5 UCLA   Pepp… Pepp…  39.6   21.5   18.0     62     60 102.  123.  -21.7     63
#>  6 UCLA   Pepp… UCLA   39.6   18.0   21.5     60     62 123.  102.   21.7     74
#>  7 Peppe… New … New …  39.9   20.6   19.2     74     74 107.  122.  -14.9     79
#>  8 Peppe… New … Pepp…  39.9   19.2   20.6     74     74 122.  107.   14.9     90
#>  9 Peppe… SFA   Pepp…  39.3   20.6   18.7     65     66  92.3  95.5  -3.15    60
#> 10 Peppe… SFA   SFA    39.3   18.7   20.6     66     65  95.5  92.3   3.15    63
#> # ℹ 12,584 more rows
#> # ℹ 69 more variables: d_pts <dbl>, fga <dbl>, d_fga <dbl>, fgm <dbl>,
#> #   d_fgm <dbl>, tpa <dbl>, d_tpa <dbl>, tpm <dbl>, d_tpm <dbl>, fta <dbl>,
#> #   d_fta <dbl>, ftm <dbl>, d_ftm <dbl>, rima <dbl>, d_rima <dbl>, rimm <dbl>,
#> #   d_rimm <dbl>, orb <dbl>, d_orb <dbl>, drb <dbl>, d_drb <dbl>, blk <dbl>,
#> #   d_blk <dbl>, to <dbl>, d_to <dbl>, ast <dbl>, d_ast <dbl>, e_poss <dbl>,
#> #   fg_pct <dbl>, d_fg_pct <dbl>, tpp <dbl>, d_tpp <dbl>, ftp <dbl>, …
# }
# \donttest{
  try(load_ncaa_mbb_rosters(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 10,228 × 4
#>    season team               player                  games
#>     <int> <chr>              <chr>                   <int>
#>  1   2026 A&M-Corpus Christi BRYSON.WHEATFALL           26
#>  2   2026 A&M-Corpus Christi CEDRIC.HORTON              13
#>  3   2026 A&M-Corpus Christi CENKER.EVRAN               26
#>  4   2026 A&M-Corpus Christi DA.HOUSTON                 27
#>  5   2026 A&M-Corpus Christi DANIEL.MICHELINIJACKSON    29
#>  6   2026 A&M-Corpus Christi DEVON.KOBI.PEARSON         31
#>  7   2026 A&M-Corpus Christi FRANCK.YETNA               33
#>  8   2026 A&M-Corpus Christi JADEN.HAIRE                25
#>  9   2026 A&M-Corpus Christi JAMAL.AMBROSE              14
#> 10   2026 A&M-Corpus Christi KAM.PARKER                 26
#> # ℹ 10,218 more rows
# }
# \donttest{
  try(load_ncaa_mbb_team_rosters(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 5,633 × 16
#>    season team_id team   player_id player clean_name name  jersey class position
#>     <int> <chr>   <chr>  <chr>     <chr>  <chr>      <chr> <chr>  <chr> <chr>   
#>  1   2026 609609  A&M-C… 11194274  BRYSO… Bryson Wh… Brys… 8      Fr.   G       
#>  2   2026 609609  A&M-C… 11194285  CEDRI… Cedric Ho… Cedr… 14     Fr.   G       
#>  3   2026 609609  A&M-C… 11194293  CENKE… Cenker Ev… Cenk… 99     Jr.   F       
#>  4   2026 609609  A&M-C… 11194270  DA.HO… DA Houston DA H… 0      Sr.   G       
#>  5   2026 609609  A&M-C… 11194276  DANIE… Daniel Mi… Dani… 10     Jr.   G       
#>  6   2026 609609  A&M-C… 11194273  DEVON… Devon Kob… Devo… 5      Fr.   F       
#>  7   2026 609609  A&M-C… 11194288  FRANC… Franck Ye… Fran… 22     Sr.   F       
#>  8   2026 609609  A&M-C… 11194279  JADEN… Jaden Hai… Jade… 11     Jr.   F       
#>  9   2026 609609  A&M-C… 11194291  JAMAL… Jamal Amb… Jama… 24     Jr.   F       
#> 10   2026 609609  A&M-C… 9333008   KAM.P… Kam Parker Kam … 4      Sr.   G       
#> # ℹ 5,623 more rows
#> # ℹ 6 more variables: height <chr>, ht_inches <int>, hometown <chr>,
#> #   high_school <chr>, gp <chr>, gs <chr>
# }
# \donttest{
  try(load_ncaa_mbb_schedule(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 6,297 × 7
#>    contest_id game_date  home              away     home_score away_score season
#>    <chr>      <chr>      <chr>             <chr>         <int>      <int>  <int>
#>  1 6388769    11/03/2025 Buffalo           Souther…         85         79   2026
#>  2 6388905    11/15/2025 Pepperdine        Norther…         81         88   2026
#>  3 6388907    11/07/2025 UCLA              Pepperd…         74         63   2026
#>  4 6388965    11/18/2025 Pepperdine        New Orl…         90         79   2026
#>  5 6388997    11/21/2025 Pepperdine        SFA              60         63   2026
#>  6 6389038    11/29/2025 Cal St. Fullerton Pepperd…         83         69   2026
#>  7 6389078    12/02/2025 Pepperdine        Abilene…         63         71   2026
#>  8 6389091    12/06/2025 Pepperdine        Vermont          56         65   2026
#>  9 6389095    12/13/2025 CSU Bakersfield   Pepperd…         62         70   2026
#> 10 6389099    12/18/2025 Long Beach St.    Pepperd…         81         78   2026
#> # ℹ 6,287 more rows
# }
# \donttest{
  try(load_ncaa_mbb_team_ids(seasons = most_recent_mbb_season()))
#> ───────────────────────────────────────────────────────────────── hoopR 3.1.0 ──
#> # A tibble: 365 × 4
#>    team               conference id     season
#>    <chr>              <chr>      <chr>   <int>
#>  1 A&M-Corpus Christi Southland  609609   2026
#>  2 Abilene Christian  WAC        609614   2026
#>  3 Air Force          MWC        609502   2026
#>  4 Akron              MAC        609541   2026
#>  5 Alabama            SEC        609617   2026
#>  6 Alabama A&M        SWAC       609615   2026
#>  7 Alabama St.        SWAC       609616   2026
#>  8 Alcorn             SWAC       609619   2026
#>  9 American           Patriot    609620   2026
#> 10 App State          Sun Belt   609621   2026
#> # ℹ 355 more rows
# }