Skip to contents

Get substitution data for a single game from the CollegeBasketballData API.

Usage

cbbd_substitutions_game(game_id)

Arguments

game_id

(integer required): CollegeBasketballData game id. See cbbd_games().

Value

A hoopR_data tibble with one row per substitution. sub_in and sub_out objects are flattened to sub_in_* / sub_out_* columns:

col_nametypesdescription
game_idintegerGame id.
start_datecharacterGame start date (ISO 8601).
team_idintegerTeam id.
teamcharacterTeam name.
conferencecharacterTeam conference.
athlete_idintegerAthlete id.
athletecharacterAthlete name.
positioncharacterAthlete position.
opponent_idintegerOpponent team id.
opponentcharacterOpponent team name.
opponent_conferencecharacterOpponent conference.

See also

Other CBD Substitutions Functions: cbbd_substitutions_player(), cbbd_substitutions_team()

Examples

# \donttest{
  try(cbbd_substitutions_game(game_id = 5881))
#>  2026-06-09 22:48:26.567008: Invalid arguments or no substitution data available for 5881!
#>  Args: game_id = 5881
#>  Error: api.collegebasketballdata.com requires an API key.        See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }