Skip to contents

Returns NHL Teams stats information for a given team ID

Usage

nhl_teams_stats(team_id, season = most_recent_nhl_season_api_param())

Arguments

team_id

A unique team ID

season

season in format XXXXYYYY

Value

Returns a tibble

Examples

# \donttest{
  try(nhl_teams_stats(team_id = 14))
#> ── NHL Teams Stats Information from NHL.com ─────────────── fastRhockey 0.6.0 ──
#>  Data updated: 2023-03-08 07:47:41 UTC
#> # A tibble: 1 × 63
#>   team_id team_name   team_…¹ seaso…² seaso…³ seaso…⁴ games…⁵  wins losses    ot
#>     <int> <chr>       <chr>   <chr>   <chr>   <lgl>     <int> <int>  <int> <int>
#> 1      14 Tampa Bay … /api/v… R       Regula… FALSE        64    38     21     5
#> # … with 53 more variables: pts <int>, pt_pctg <chr>, goals_per_game <dbl>,
#> #   goals_against_per_game <dbl>, ev_gga_ratio <dbl>,
#> #   power_play_percentage <chr>, power_play_goals <dbl>,
#> #   power_play_goals_against <dbl>, power_play_opportunities <dbl>,
#> #   penalty_kill_percentage <chr>, shots_per_game <dbl>, shots_allowed <dbl>,
#> #   win_score_first <dbl>, win_opp_score_first <dbl>, win_lead_first_per <dbl>,
#> #   win_lead_second_per <dbl>, win_outshoot_opp <dbl>, …
# }