Skip to contents

Get substitution data for a team-season from the CollegeBasketballData API.

Usage

cbbd_substitutions_team(season = most_recent_mbb_season(), team)

Arguments

season

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

team

(character required): Team name (e.g. Duke).

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_player()

Examples

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