Get lineup statistics for a team-season from the CollegeBasketballData API.
Get lineup statistics for a single game from the CollegeBasketballData API.
Usage
cbbd_lineups_team(
season = most_recent_mbb_season(),
team,
start_date_range = NULL,
end_date_range = NULL
)
cbbd_lineups_game(game_id)Arguments
- season
(integer required): Season, 4-digit ending-year (e.g.
2024). Defaults tomost_recent_mbb_season().- team
(character required): Team name (e.g.
Duke).- start_date_range
(character optional): ISO 8601 start of date range.
- end_date_range
(character optional): ISO 8601 end of date range.
- game_id
(integer required): CollegeBasketballData game id. See
cbbd_games().
Value
A hoopR_data tibble with one row per lineup.
Its columns are listed in return_columns
(subset(return_columns, fn == "cbbd_lineups_team")) and in the searchable
return columns article.
A hoopR_data tibble with one row per lineup (same columns as
cbbd_lineups_team()).
Examples
# \donttest{
try(cbbd_lineups_team(season = 2024, team = "Duke"))
#> ✖ 2026-11-13 21:11:17.215904: Invalid arguments or no lineup data available for Duke!
#> ✖ Args: season = 2024, team = "Duke", 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_lineups_game(game_id = 5881))
#> ✖ 2026-11-13 21:11:17.226381: Invalid arguments or no lineup data available for 5881!
#> ✖ Args: game_id = 5881
#> ✖ Error: api.collegebasketballdata.com requires an API key. See ?register_cbbd for details.
#> data frame with 0 columns and 0 rows
# }
