spotrac_team_cap: *Spotrac NBA Team Salary Cap*

View source: R/spotrac_team_cap.R

spotrac_team_capR Documentation

Spotrac NBA Team Salary Cap

Description

Get team salary-cap allocations from Spotrac.

Returns one row per team with cap allocations, cap space, active-player counts and average age for a season. No API key is required.

Usage

spotrac_team_cap(season = most_recent_nba_season())

Arguments

season

(integer required): Season, in 4-digit ending-year format (e.g. 2024). Defaults to most_recent_nba_season().

Value

A hoopR_data tibble with one row per team (columns reflect Spotrac's table; dollar figures are returned as numeric):

col_name types description
rank integer Spotrac cap rank.
team character Team abbreviation.
record character Win-loss record.
players_active integer Number of active players.
avg_age_team numeric Average roster age.
total_cap_allocations numeric Total cap allocations (USD).
cap_space_all numeric Cap space / over-the-cap amount (USD).
season integer Season (echoes the season argument).

See Also

Other Salary & Draft Functions: hoopshype_salaries(), nbadraft_mock_draft()

Examples


  try(spotrac_team_cap(season = 2024))


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