Skip to contents

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

Usage

cbbd_substitutions_player(player_id, season = most_recent_mbb_season())

Arguments

player_id

(integer required): Athlete id.

season

(integer required): Season, 4-digit ending-year (e.g. 2024). Defaults to most_recent_mbb_season().

Value

A hoopR_data tibble with one row per substitution (same columns as cbbd_substitutions_game()).

See also

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

Examples

# \donttest{
  try(cbbd_substitutions_player(player_id = 160, season = 2024))
#>  2026-06-09 22:48:26.789992: Invalid arguments or no substitution data available for player 160!
#>  Args: player_id = 160, season = 2024
#>  Error: api.collegebasketballdata.com requires an API key.        See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }