Get the team statistics leaderboard from the CollegeBasketballData API.
Usage
cbbd_stats_team_leaderboard(
season = most_recent_mbb_season(),
team = NULL,
conference = NULL
)Arguments
- season
(integer optional): Season, 4-digit ending-year (e.g.
2024). Defaults tomost_recent_mbb_season().- team
(character optional): Team name filter.
- conference
(character optional): Conference abbreviation filter.
Value
A hoopR_data tibble with one row per team. Nested statistic objects
(record, summary, team_stats, opponent_stats, shot_profile,
adjusted_efficiency) are flattened into prefixed columns. Key identifying
columns:
| col_name | types | description |
| season | integer | Season (4-digit ending-year). |
| team_id | integer | Team id. |
| team | character | Team name. |
See also
Other CBD Stats Functions:
cbbd_stats_player_season(),
cbbd_stats_player_shooting_season(),
cbbd_stats_team_season(),
cbbd_stats_team_shooting_season()
Examples
# \donttest{
try(cbbd_stats_team_leaderboard(season = 2024))
#> ✖ 2026-06-09 22:48:25.876827: Invalid arguments or no team stats leaderboard available!
#> ✖ Args: season = 2024, team = NULL, conference = NULL
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
