
Get ESPN NHL Season Power Index (core-v2)
Source:R/espn_nhl_season_extra.R
espn_nhl_season_powerindex.RdGet ESPN NHL Season Power Index (core-v2)
Usage
espn_nhl_season_powerindex(
season = most_recent_nhl_season(),
team_id = NULL,
...
)Arguments
- season
Season end-year (e.g.
2026). Defaults tomost_recent_nhl_season().- team_id
Optional ESPN team identifier (character or numeric). When provided, fetches power-index data for a single team. Defaults to
NULL(collection for all teams).- ...
Reserved for forward compatibility.
Value
A fastRhockey_data tibble with one row per power-index entry, or
an empty tibble when no data is available. Note: ESPN does not publish
power-index data for NHL - this endpoint consistently returns empty
results for hockey:
| col_name | types | description |
| ref | character | $ref URL for the power-index object. |
| powerindex_id | character | Power-index id parsed from the $ref URL. |
| season | integer | Season year (echoed from arg). |
| team_id | character | Team id (echoed from arg, if supplied). |
| count | integer | Total entries in the collection. |
| page_count | integer | Total pages in the collection. |
See also
family_espn_nhl lists every function in this family.
Examples
# \donttest{
# NOTE: Returns empty tibble for NHL (ESPN does not publish powerindex for hockey)
try(espn_nhl_season_powerindex(season = 2026))
#> ! 2026-11-13 21:27:22.975667: ESPN nhl season powerindex for 2026 not available (not published for NHL).
#> ! Warning: The API returned an error
#> data frame with 0 columns and 0 rows
# }