
Get ESPN NBA Team Depth Chart (Long Format)
Source:R/espn_nba_team_deep.R
espn_nba_team_depthchart.RdReturns the team's depth chart in long format, one row per (position × rank × athlete). NBA-only at ESPN's core-v2.
Usage
espn_nba_team_depthchart(team_id, season = most_recent_nba_season(), ...)Value
A long tibble with one row per athlete depth entry.
| col_name | types | description |
| league | character | League slug. |
| team_id | character | ESPN team id. |
| season | integer | Season year. |
| depthchart_id | character | Depth chart id (typically "1"). |
| depthchart_name | character | Depth chart name. |
| position | character | Position code (pg/sg/sf/pf/c). |
| rank | integer | Depth rank (1 = starter). |
| athlete_id | character | ESPN athlete id. |
| athlete_ref | character | $ref URL to athlete-in-season. |
| position_ref | character | $ref URL to position resource. |
See also
Other ESPN NBA Functions:
espn_nba_athlete_awards(),
espn_nba_athlete_career_stats(),
espn_nba_athlete_contract(),
espn_nba_athlete_contracts(),
espn_nba_athlete_eventlog(),
espn_nba_athlete_eventlog_v2(),
espn_nba_athlete_gamelog(),
espn_nba_athlete_info(),
espn_nba_athlete_overview(),
espn_nba_athlete_seasons(),
espn_nba_athlete_splits(),
espn_nba_athlete_statisticslog(),
espn_nba_athlete_stats(),
espn_nba_athletes_index(),
espn_nba_award(),
espn_nba_betting(),
espn_nba_calendar(),
espn_nba_coach(),
espn_nba_coach_season(),
espn_nba_coaches(),
espn_nba_conferences(),
espn_nba_draft(),
espn_nba_draft_athletes(),
espn_nba_draft_pick(),
espn_nba_draft_rounds(),
espn_nba_draft_status(),
espn_nba_event_broadcasts(),
espn_nba_event_odds(),
espn_nba_event_officials(),
espn_nba_event_powerindex(),
espn_nba_event_predictor(),
espn_nba_event_probabilities(),
espn_nba_event_propbets(),
espn_nba_event_situation(),
espn_nba_franchise(),
espn_nba_franchises(),
espn_nba_freeagents(),
espn_nba_futures(),
espn_nba_game_all(),
espn_nba_game_rosters(),
espn_nba_injuries(),
espn_nba_leaders(),
espn_nba_news(),
espn_nba_pbp(),
espn_nba_player_box(),
espn_nba_player_stats(),
espn_nba_powerindex(),
espn_nba_scoreboard(),
espn_nba_season_awards(),
espn_nba_season_group(),
espn_nba_season_group_children(),
espn_nba_season_group_teams(),
espn_nba_season_groups(),
espn_nba_season_info(),
espn_nba_season_leaders(),
espn_nba_season_ranking(),
espn_nba_season_rankings(),
espn_nba_season_type(),
espn_nba_season_types(),
espn_nba_season_week(),
espn_nba_season_weeks(),
espn_nba_seasons(),
espn_nba_standings(),
espn_nba_team(),
espn_nba_team_box(),
espn_nba_team_current_roster(),
espn_nba_team_injuries(),
espn_nba_team_leaders(),
espn_nba_team_news(),
espn_nba_team_odds_records(),
espn_nba_team_record(),
espn_nba_team_roster(),
espn_nba_team_schedule(),
espn_nba_team_season_profile(),
espn_nba_team_season_roster(),
espn_nba_team_stats(),
espn_nba_teams(),
espn_nba_tournament(),
espn_nba_tournament_seasons(),
espn_nba_tournaments(),
espn_nba_transactions(),
espn_nba_venues(),
espn_nba_week_ranking(),
espn_nba_week_rankings(),
espn_nba_wp()
Examples
# \donttest{
espn_nba_team_depthchart(team_id = 13, season = 2025)
#> ── ESPN NBA Team Depth Chart ──────────────────────────────────── hoopR 3.1.0 ──
#> ℹ Data updated: 2026-05-19 01:34:14 UTC
#> # A tibble: 30 × 10
#> league team_id season depthchart_id depthchart_name position rank athlete_id
#> <chr> <chr> <int> <chr> <chr> <chr> <int> <chr>
#> 1 nba 13 2025 1 Depth Chart pg 1 3945274
#> 2 nba 13 2025 1 Depth Chart pg 2 3137259
#> 3 nba 13 2025 1 Depth Chart pg 3 2990992
#> 4 nba 13 2025 1 Depth Chart pg 4 4683774
#> 5 nba 13 2025 1 Depth Chart pg 5 4066457
#> 6 nba 13 2025 1 Depth Chart pg 6 4683686
#> 7 nba 13 2025 1 Depth Chart sg 1 4066457
#> 8 nba 13 2025 1 Depth Chart sg 2 2990992
#> 9 nba 13 2025 1 Depth Chart sg 3 4897943
#> 10 nba 13 2025 1 Depth Chart sg 4 4683774
#> # ℹ 20 more rows
#> # ℹ 2 more variables: athlete_ref <chr>, position_ref <chr>
# }