cbbd_lineups_game: *CBD Team Lineups*

View source: R/cbbd_lineups.R

cbbd_lineups_teamR Documentation

CBD Team Lineups

Description

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 to most_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. The athletes column is a list of lineup members; team_stats/opponent_stats are flattened into prefixed columns. Key identifying columns:

col_name types description
team_id integer Team id.
team character Team name.
conference character Conference name.
id_hash character Unique hash identifying the lineup.
athletes list List of athletes in the lineup.
total_seconds numeric Total seconds the lineup played.
pace numeric Lineup pace (possessions).
offense_rating numeric Lineup offensive rating.
defense_rating numeric Lineup defensive rating.
net_rating numeric Lineup net rating.

A hoopR_data tibble with one row per lineup (same columns as cbbd_lineups_team()).

Examples


  try(cbbd_lineups_team(season = 2024, team = "Duke"))


  try(cbbd_lineups_game(game_id = 5881))


hoopR documentation built on Aug. 25, 2026, 9:07 a.m.