View source: R/spotrac_team_cap.R
| spotrac_team_cap | R Documentation |
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.
spotrac_team_cap(season = most_recent_nba_season())
season |
(integer required): Season, in 4-digit ending-year format
(e.g. |
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). |
Other Salary & Draft Functions:
hoopshype_salaries(),
nbadraft_mock_draft()
try(spotrac_team_cap(season = 2024))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.