Skip to contents

Returns player information for a given player ID

Usage

nhl_player_info(player_id)

Arguments

player_id

Player unique ID

Value

Returns a tibble

Examples

# \donttest{
  try(nhl_player_info(player_id=8476899))
#> ── NHL Player Information from NHL.com ──────────────────── fastRhockey 0.6.0 ──
#>  Data updated: 2023-03-08 07:47:31 UTC
#> # A tibble: 1 × 27
#>   player…¹ 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     
#> # … with 17 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>, and
#> #   abbreviated variable names ¹​player_id, ²​full_name, ³​first_name, …
# }