Skip to contents

Get adjusted efficiency ratings from the CollegeBasketballData API.

Usage

cbbd_ratings_adjusted(
  season = most_recent_mbb_season(),
  team = NULL,
  conference = NULL
)

Arguments

season

(integer optional): Season, 4-digit ending-year (e.g. 2024). Defaults to most_recent_mbb_season().

team

(character optional): Team name filter.

conference

(character optional): Conference abbreviation filter.

Value

A hoopR_data tibble with one row per team-season. rankings_* columns are flattened from the nested rankings object:

col_nametypesdescription
seasonintegerSeason (4-digit ending-year).
team_idintegerCollegeBasketballData team id.
teamcharacterTeam name.
conferencecharacterConference name.
offensive_ratingnumericAdjusted offensive efficiency rating.
defensive_ratingnumericAdjusted defensive efficiency rating.
net_ratingnumericAdjusted net efficiency rating.

See also

Other CBD Ratings Functions: cbbd_ratings_elo(), cbbd_ratings_srs()

Examples

# \donttest{
  try(cbbd_ratings_adjusted(season = 2024))
#>  2026-06-09 22:48:23.839433: Invalid arguments or no adjusted ratings 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
# }