Queries the NHL Stats REST API for draft-year summaries
(draft year and number of rounds). Optionally filter to a specific
draft year via draft_year.
Value
A data frame (fastRhockey_data) with the following columns:
| col_name | types | description |
| id | integer | Unique draft summary identifier. |
| draft_year | integer | Draft year. |
| rounds | integer | Number of rounds in the draft. |
Examples
# \donttest{
try(nhl_stats_draft())
#> ── NHL Stats Draft ──────────────────────────────────────── fastRhockey 1.0.0 ──
#> ℹ Data updated: 2026-06-13 03:26:02 UTC
#> # A tibble: 64 × 3
#> id draft_year rounds
#> <int> <int> <int>
#> 1 1 1989 12
#> 2 2 1975 18
#> 3 3 2008 7
#> 4 4 2013 7
#> 5 5 2006 7
#> 6 6 1994 11
#> 7 7 1982 12
#> 8 8 1968 3
#> 9 9 2018 7
#> 10 10 1999 9
#> # ℹ 54 more rows
try(nhl_stats_draft(draft_year = 2024))
#> ── NHL Stats Draft ──────────────────────────────────────── fastRhockey 1.0.0 ──
#> ℹ Data updated: 2026-06-13 03:26:02 UTC
#> # A tibble: 1 × 3
#> id draft_year rounds
#> <int> <int> <int>
#> 1 63 2024 7
# }
