Skip to contents

Get ESPN NHL Position (core-v2)

Usage

espn_nhl_position(position_id, ...)

Arguments

position_id

ESPN position identifier (character or numeric). Use espn_nhl_positions() to discover valid position ids.

...

Reserved for forward compatibility.

Value

A one-row fastRhockey_data tibble with position detail:

col_nametypesdescription
position_idcharacterESPN position id (echoed from arg).
idcharacterESPN position identifier from response.
namecharacterPosition name (e.g. "Center").
display_namecharacterPosition display name.
abbreviationcharacterPosition abbreviation (e.g. "C").
leaflogicalWhether this is a leaf (non-parent) position.
parent_refcharacter$ref URL for the parent position (if any).
position_refcharacter$ref URL for this position object.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try({
    pos <- espn_nhl_positions()
    espn_nhl_position(position_id = pos$position_id[1])
  })
#> ── NHL Position data from ESPN core-v2 ──────────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:17 UTC
#> # A tibble: 1 × 8
#>   position_id id    name   display_name abbreviation leaf  parent_ref           
#>   <chr>       <chr> <chr>  <chr>        <chr>        <lgl> <chr>                
#> 1 1           1     Center Center       C            TRUE  http://sports.core.a…
#> # ℹ 1 more variable: position_ref <chr>
# }