Get play-by-play data for a single player from the CollegeBasketballData API.
Usage
cbbd_plays_player(
player_id,
season = most_recent_mbb_season(),
shooting_plays_only = FALSE
)Arguments
- player_id
(integer required): Athlete id.
- season
(integer required): Season, 4-digit ending-year (e.g.
2024). Defaults tomost_recent_mbb_season().- shooting_plays_only
(logical optional): If
TRUE, return only shooting plays. Defaults toFALSE.
Value
A hoopR_data tibble with one row per play (same columns as
cbbd_plays_game()).
See also
Other CBD Plays Functions:
cbbd_play_types(),
cbbd_plays_date(),
cbbd_plays_game(),
cbbd_plays_team(),
cbbd_plays_tournament()
Examples
# \donttest{
try(cbbd_plays_player(player_id = 160, season = 2024))
#> ✖ 2026-06-09 22:48:22.96014: Invalid arguments or no play data available for player 160!
#> ✖ Args: player_id = 160, season = 2024, shooting_plays_only = FALSE
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
