Get player season statistics from the CollegeBasketballData API.
Usage
cbbd_stats_player_season(
season = most_recent_mbb_season(),
season_type = NULL,
team = NULL,
conference = NULL,
start_date_range = NULL,
end_date_range = NULL
)Arguments
- season
(integer required): 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 player-season. Nested
statistic objects (field_goals, two_point_field_goals,
three_point_field_goals, free_throws, rebounds, win_shares) 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. |
| conference | character | Conference name. |
| athlete_id | integer | Athlete id. |
| name | character | Player name. |
| position | character | Player position. |
| games | numeric | Games played. |
| minutes | numeric | Minutes played. |
| points | numeric | Total points. |
See also
Other CBD Stats Functions:
cbbd_stats_player_shooting_season(),
cbbd_stats_team_leaderboard(),
cbbd_stats_team_season(),
cbbd_stats_team_shooting_season()
Examples
# \donttest{
try(cbbd_stats_player_season(season = 2024, team = "Duke"))
#> ✖ 2026-06-09 22:48:25.418396: 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
# }
