Skip to contents

Returns information on game shifts for a given game id

Usage

nhl_game_shifts(game_id)

Arguments

game_id

Game unique ID

Value

Returns a tibble

Examples

# \donttest{
  try(nhl_game_shifts(game_id = 2021020182))
#> ── NHL Game Shifts Information from NHL.com ─────────────── fastRhockey 0.6.0 ──
#>  Data updated: 2023-03-08 07:47:31 UTC
#> # A tibble: 326 × 14
#>    event_…¹ period perio…² perio…³ game_…⁴ num_on playe…⁵ ids_on num_off playe…⁶
#>    <chr>     <int> <chr>     <dbl>   <dbl>  <int> <chr>   <chr>    <int> <chr>  
#>  1 Boston …      1 00:00         0       0      6 Patric… 84706…      NA None   
#>  2 Ottawa …      1 00:00         0       0      6 Matt M… 84768…      NA None   
#>  3 Boston …      1 00:18        18      18      1 Matt G… 84768…       1 Derek …
#>  4 Ottawa …      1 00:18        18      18      5 Michae… 84745…       5 Zach S…
#>  5 Boston …      1 00:41        41      41      2 Craig … 84752…       2 David …
#>  6 Ottawa …      1 00:46        46      46      3 Thomas… 84784…       3 Michae…
#>  7 Boston …      1 00:56        56      56      2 Charli… 84757…       2 Patric…
#>  8 Ottawa …      1 00:58        58      58      2 Zach S… 84774…       2 Drake …
#>  9 Boston …      1 01:14        74      74      5 Erik H… 84752…       5 Craig …
#> 10 Ottawa …      1 01:14        74      74      5 Michae… 84745…       5 Zach S…
#> # … with 316 more rows, 4 more variables: ids_off <chr>, event <chr>,
#> #   event_type <chr>, game_seconds_remaining <dbl>, and abbreviated variable
#> #   names ¹​event_team, ²​period_time, ³​period_seconds, ⁴​game_seconds,
#> #   ⁵​players_on, ⁶​players_off
# }