Get team season statistics from the CollegeBasketballData API.
Get the team statistics leaderboard from the CollegeBasketballData API.
Get team season shooting statistics from the CollegeBasketballData API.
Get player season statistics from the CollegeBasketballData API.
Get player season shooting statistics from the CollegeBasketballData API.
Usage
cbbd_stats_team_season(
season = most_recent_mbb_season(),
season_type = NULL,
team = NULL,
conference = NULL,
start_date_range = NULL,
end_date_range = NULL
)
cbbd_stats_team_leaderboard(
season = most_recent_mbb_season(),
team = NULL,
conference = NULL
)
cbbd_stats_team_shooting_season(
season = most_recent_mbb_season(),
season_type = NULL,
team = NULL,
conference = NULL,
start_date_range = NULL,
end_date_range = NULL
)
cbbd_stats_player_season(
season = most_recent_mbb_season(),
season_type = NULL,
team = NULL,
conference = NULL,
start_date_range = NULL,
end_date_range = NULL
)
cbbd_stats_player_shooting_season(
season = most_recent_mbb_season(),
season_type = NULL,
team = NULL,
conference = NULL,
start_date_range = NULL,
end_date_range = NULL
)Arguments
- season
(integer optional): Season, 4-digit ending-year (e.g.
2024). Defaults tomost_recent_mbb_season().- season_type
(character optional): One of
regular,postseason,preseason.- team
(character optional): Team name filter.
- conference
(character optional): Conference abbreviation filter.
- start_date_range
(character optional): ISO 8601 start of date range.
- end_date_range
(character optional): ISO 8601 end of date range.
Value
A hoopR_data tibble with one row per team-season.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_stats_team_season")) and in the searchable
return columns article.
A hoopR_data tibble with one row per team.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_stats_team_leaderboard")) and in the searchable
return columns article.
A hoopR_data tibble with one row per team-season.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_stats_team_shooting_season")) and in the searchable
return columns article.
A hoopR_data tibble with one row per player-season.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_stats_player_season")) and in the searchable
return columns article.
A hoopR_data tibble with one row per player-season.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_stats_player_shooting_season")) and in the searchable
return columns article.
Examples
# \donttest{
try(cbbd_stats_team_season(season = 2024, team = "Duke"))
#> ✖ 2026-11-13 21:11:18.620697: Invalid arguments or no team season stats available!
#> ✖ Args: season = 2024, season_type = NULL, team = "Duke", conference = NULL, start_date_range = NULL, end_date_range = NULL
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
# \donttest{
try(cbbd_stats_team_leaderboard(season = 2024))
#> ✖ 2026-11-13 21:11:18.630683: 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
# }
# \donttest{
try(cbbd_stats_team_shooting_season(season = 2024, team = "Duke"))
#> ✖ 2026-11-13 21:11:18.640447: Invalid arguments or no team shooting stats available!
#> ✖ Args: season = 2024, season_type = NULL, team = "Duke", conference = NULL, start_date_range = NULL, end_date_range = NULL
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
# \donttest{
try(cbbd_stats_player_season(season = 2024, team = "Duke"))
#> ✖ 2026-11-13 21:11:18.650548: Invalid arguments or no player season stats available!
#> ✖ Args: season = 2024, season_type = NULL, team = "Duke", conference = NULL, start_date_range = NULL, end_date_range = NULL
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
# \donttest{
try(cbbd_stats_player_shooting_season(season = 2024, team = "Duke"))
#> ✖ 2026-11-13 21:11:18.660197: Invalid arguments or no player shooting stats available!
#> ✖ Args: season = 2024, season_type = NULL, team = "Duke", conference = NULL, start_date_range = NULL, end_date_range = NULL
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
