Returns NHL Teams roster information for a given team ID
Usage
nhl_teams_roster(team_id, season = most_recent_nhl_season_api_param())
Examples
# \donttest{
try(nhl_teams_roster(team_id = 14, season = 20202021))
#> ── NHL Teams Roster Information from NHL.com ────────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:41 UTC
#> # A tibble: 32 × 10
#> jersey_number playe…¹ playe…² playe…³ posit…⁴ posit…⁵ posit…⁶ posit…⁷ team_id
#> <chr> <int> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
#> 1 17 8473986 Alex K… /api/v… L Left W… Forward LW 14
#> 2 14 8474034 Pat Ma… /api/v… L Left W… Forward LW 14
#> 3 27 8474151 Ryan M… /api/v… D Defens… Defens… D 14
#> 4 91 8474564 Steven… /api/v… C Center Forward C 14
#> 5 2 8474568 Luke S… /api/v… D Defens… Defens… D 14
#> 6 90 8474870 Tyler … /api/v… C Center Forward C 14
#> 7 77 8475167 Victor… /api/v… D Defens… Defens… D 14
#> 8 58 8475233 David … /api/v… D Defens… Defens… D 14
#> 9 18 8476292 Ondrej… /api/v… L Left W… Forward LW 14
#> 10 3 8476368 Fredri… /api/v… D Defens… Defens… D 14
#> # … with 22 more rows, 1 more variable: season <dbl>, and abbreviated variable
#> # names ¹player_id, ²player_full_name, ³player_link, ⁴position_code,
#> # ⁵position_name, ⁶position_type, ⁷position_abbreviation
# }