
Get ESPN MBB Season Leaders (Long Format)
Source:R/espn_mbb_season_meta.R, R/espn_nba_season_meta.R
espn_mbb_season_leaders.RdReturns the per-category leaderboard for one (MBB season x season-type), in long format. Each row is one (category x rank) entry, e.g. "Points Per Game x rank 1 x LeBron James".
Returns the per-category leaderboard for one (NBA season x season-type), in long format. Each row is one (category x rank) entry, e.g. "Points Per Game x rank 1 x LeBron James".
Usage
espn_mbb_season_leaders(
season = most_recent_mbb_season(),
season_type = c(2L, 3L),
...
)
espn_nba_season_leaders(
season = most_recent_nba_season(),
season_type = c(2L, 3L),
...
)Value
A hoopR_data tibble with one row per category and leader.
| col_name | types | description |
| league | character | League slug. |
| season | integer | Season year. |
| season_type | integer | Season-type id. |
| category_name | character | Internal category key (e.g. "pointsPerGame"). |
| category_display | character | Human-readable category name. |
| category_short | character | Short display name. |
| category_abbrev | character | Stat abbreviation (e.g. "PTS"). |
| rank | integer | Rank within the category (1 = best). |
| athlete_id | character | ESPN athlete id. |
| team_id | character | ESPN team id. |
| display_value | character | Display-formatted value. |
| value | numeric | Numeric leader value. |
| rel | character | Comma-joined rel tags from ESPN. |
| athlete_ref | character | $ref URL to the leader's athlete. |
| team_ref | character | $ref URL to the leader's team. |
A hoopR_data tibble with one row per category and leader.
| col_name | types | description |
| league | character | League slug. |
| season | integer | Season year. |
| season_type | integer | Season-type id. |
| category_name | character | Internal category key (e.g. "pointsPerGame"). |
| category_display | character | Human-readable category name. |
| category_short | character | Short display name. |
| category_abbrev | character | Stat abbreviation (e.g. "PTS"). |
| rank | integer | Rank within the category (1 = best). |
| athlete_id | character | ESPN athlete id. |
| team_id | character | ESPN team id. |
| display_value | character | Display-formatted value. |
| value | numeric | Numeric leader value. |
| rel | character | Comma-joined rel tags from ESPN. |
| athlete_ref | character | $ref URL to the leader's athlete. |
| team_ref | character | $ref URL to the leader's team. |
See also
family_espn_mbb lists every function in this family.
family_espn_nba lists every function in this family.
Examples
# \donttest{
espn_mbb_season_leaders(season = 2025)
#> ── ESPN MENS-COLLEGE-BASKETBALL Season-Type Leaders ───────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-13 21:12:30 UTC
#> # A tibble: 350 × 15
#> league season season_type category_name category_display category_short
#> <chr> <int> <int> <chr> <chr> <chr>
#> 1 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 2 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 3 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 4 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 5 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 6 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 7 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 8 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 9 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> 10 mens-colleg… 2025 2 pointsPerGame Points Per Game PPG
#> # ℹ 340 more rows
#> # ℹ 9 more variables: category_abbrev <chr>, rank <int>, athlete_id <chr>,
#> # team_id <chr>, display_value <chr>, value <dbl>, rel <chr>,
#> # athlete_ref <chr>, team_ref <chr>
# }
# \donttest{
espn_nba_season_leaders(season = 2025)
#> ── ESPN NBA Season-Type Leaders ───────────────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-13 21:12:32 UTC
#> # A tibble: 800 × 15
#> league season season_type category_name category_display category_short
#> <chr> <int> <int> <chr> <chr> <chr>
#> 1 nba 2025 2 pointsPerGame Points Per Game PPG
#> 2 nba 2025 2 pointsPerGame Points Per Game PPG
#> 3 nba 2025 2 pointsPerGame Points Per Game PPG
#> 4 nba 2025 2 pointsPerGame Points Per Game PPG
#> 5 nba 2025 2 pointsPerGame Points Per Game PPG
#> 6 nba 2025 2 pointsPerGame Points Per Game PPG
#> 7 nba 2025 2 pointsPerGame Points Per Game PPG
#> 8 nba 2025 2 pointsPerGame Points Per Game PPG
#> 9 nba 2025 2 pointsPerGame Points Per Game PPG
#> 10 nba 2025 2 pointsPerGame Points Per Game PPG
#> # ℹ 790 more rows
#> # ℹ 9 more variables: category_abbrev <chr>, rank <int>, athlete_id <chr>,
#> # team_id <chr>, display_value <chr>, value <dbl>, rel <chr>,
#> # athlete_ref <chr>, team_ref <chr>
# }