Skip to contents

Returns player stats for a given player ID

Usage

nhl_player_stats(player_id)

Arguments

player_id

Player unique ID

Value

Returns a tibble

Examples

# \donttest{
  try(nhl_player_stats(player_id=8476899))
#> ── NHL Player Stats Information from NHL.com ────────────── fastRhockey 0.6.0 ──
#>  Data updated: 2023-03-08 07:47:32 UTC
#> # A tibble: 34 × 85
#>    playe…¹ full_…² link  first…³ last_…⁴ prima…⁵ birth…⁶ curre…⁷ birth…⁸ birth…⁹
#>      <int> <chr>   <chr> <chr>   <chr>   <chr>   <chr>     <int> <chr>   <chr>  
#>  1 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  2 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  3 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  4 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  5 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  6 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  7 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  8 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#>  9 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#> 10 8476899 Matt M… /api… Matt    Murray  30      1994-0…      28 Thunde… ON     
#> # … with 24 more rows, 75 more variables: birth_country <chr>,
#> #   nationality <chr>, height <chr>, weight <int>, active <lgl>,
#> #   alternate_captain <lgl>, captain <lgl>, rookie <lgl>, shoots_catches <chr>,
#> #   roster_status <chr>, current_team_id <int>, current_team_name <chr>,
#> #   current_team_link <chr>, primary_position_code <chr>,
#> #   primary_position_name <chr>, primary_position_type <chr>,
#> #   primary_position_abbreviation <chr>, season <chr>, sequence_number <int>, …
# }