Returns information on game feed for a given game id
Value
Returns a named list of data frames: all_plays, scoring_plays, penalty_plays, plays_by_period, current_play, linescore, decisions, team_box, player_box, skaters, goalies, on_ice, on_ice_plus, penalty_box, scratches, team_coaches
Examples
# \donttest{
try(nhl_game_feed(game_id = 2018020561))
#> $all_plays
#> ── NHL Game Plays Information from NHL.com ──────────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:11 UTC
#> # A tibble: 707 × 107
#> event_…¹ event secon…² event…³ event…⁴ descr…⁵ period perio…⁶ perio…⁷ game_…⁸
#> <chr> <chr> <chr> <chr> <chr> <chr> <int> <dbl> <dbl> <dbl>
#> 1 GAME_SC… Game… NA NA NA Game S… 1 0 1200 0
#> 2 CHANGE Chan… NA New Yo… home ON: He… 1 0 1200 0
#> 3 CHANGE Chan… Line c… Philad… away ON: Mi… 1 0 1200 0
#> 4 FACEOFF Face… NA New Yo… home Kevin … 1 0 1200 0
#> 5 CHANGE Chan… On the… New Yo… home ON: Fi… 1 27 1173 27
#> 6 CHANGE Chan… On the… Philad… away ON: Ra… 1 31 1169 31
#> 7 CHANGE Chan… On the… New Yo… home ON: Ma… 1 40 1160 40
#> 8 CHANGE Chan… On the… Philad… away ON: Ja… 1 40 1160 40
#> 9 CHANGE Chan… On the… Philad… away ON: Cl… 1 51 1149 51
#> 10 CHANGE Chan… On the… New Yo… home ON: Ji… 1 63 1137 63
#> # … with 697 more rows, 97 more variables: game_seconds_remaining <dbl>,
#> # home_score <dbl>, away_score <dbl>, event_player_1_name <chr>,
#> # event_player_1_type <chr>, event_player_2_name <chr>,
#> # event_player_2_type <chr>, event_player_3_name <chr>,
#> # event_player_3_type <chr>, event_goalie_name <chr>, strength_state <glue>,
#> # strength_code <chr>, strength <chr>, game_winning_goal <lgl>,
#> # empty_net <lgl>, penalty_severity <chr>, penalty_minutes <int>, …
#>
#> $scoring_plays
#> ── NHL Game Scoring Plays Information from NHL.com ──────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:11 UTC
#> # A tibble: 5 × 1
#> value
#> <int>
#> 1 57
#> 2 142
#> 3 259
#> 4 266
#> 5 364
#>
#> $penalty_plays
#> ── NHL Game Penalty Box Information from NHL.com ────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:11 UTC
#> # A tibble: 4 × 1
#> value
#> <int>
#> 1 183
#> 2 219
#> 3 232
#> 4 256
#>
#> $plays_by_period
#> ── NHL Game Plays by Period Information from NHL.com ────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:11 UTC
#> # A tibble: 5 × 3
#> startIndex plays endIndex
#> <int> <list> <int>
#> 1 0 <int [123]> 121
#> 2 123 <int [116]> 237
#> 3 239 <int [96]> 333
#> 4 335 <int [21]> 354
#> 5 356 <int [14]> 369
#>
#> $current_play
#> $current_play$result
#> $current_play$result$event
#> [1] "Game End"
#>
#> $current_play$result$eventCode
#> [1] "NYR803"
#>
#> $current_play$result$eventTypeId
#> [1] "GAME_END"
#>
#> $current_play$result$description
#> [1] "Game End"
#>
#>
#> $current_play$about
#> $current_play$about$eventIdx
#> [1] 369
#>
#> $current_play$about$eventId
#> [1] 803
#>
#> $current_play$about$period
#> [1] 5
#>
#> $current_play$about$periodType
#> [1] "SHOOTOUT"
#>
#> $current_play$about$ordinalNum
#> [1] "SO"
#>
#> $current_play$about$periodTime
#> [1] "00:00"
#>
#> $current_play$about$periodTimeRemaining
#> [1] "00:00"
#>
#> $current_play$about$dateTime
#> [1] "2018-12-24T02:51:22Z"
#>
#> $current_play$about$goals
#> $current_play$about$goals$away
#> [1] 2
#>
#> $current_play$about$goals$home
#> [1] 2
#>
#>
#>
#> $current_play$coordinates
#> named list()
#>
#>
#> $linescore
#> $linescore$currentPeriod
#> [1] 5
#>
#> $linescore$currentPeriodOrdinal
#> [1] "SO"
#>
#> $linescore$currentPeriodTimeRemaining
#> [1] "Final"
#>
#> $linescore$periods
#> periodType startTime endTime num ordinalNum
#> 1 REGULAR 2018-12-24T00:08:12Z 2018-12-24T00:45:25Z 1 1st
#> 2 REGULAR 2018-12-24T01:03:24Z 2018-12-24T01:42:24Z 2 2nd
#> 3 REGULAR 2018-12-24T02:00:31Z 2018-12-24T02:36:46Z 3 3rd
#> 4 OVERTIME 2018-12-24T02:38:52Z 2018-12-24T02:45:40Z 4 OT
#> home.goals home.shotsOnGoal home.rinkSide away.goals away.shotsOnGoal
#> 1 1 9 right 0 10
#> 2 0 10 left 1 13
#> 3 1 13 right 1 5
#> 4 0 2 left 0 3
#> away.rinkSide
#> 1 left
#> 2 right
#> 3 left
#> 4 right
#>
#> $linescore$shootoutInfo
#> $linescore$shootoutInfo$away
#> $linescore$shootoutInfo$away$scores
#> [1] 1
#>
#> $linescore$shootoutInfo$away$attempts
#> [1] 4
#>
#>
#> $linescore$shootoutInfo$home
#> $linescore$shootoutInfo$home$scores
#> [1] 0
#>
#> $linescore$shootoutInfo$home$attempts
#> [1] 4
#>
#>
#> $linescore$shootoutInfo$startTime
#> [1] "2018-12-24T02:47:11Z"
#>
#>
#> $linescore$teams
#> $linescore$teams$home
#> $linescore$teams$home$team
#> $linescore$teams$home$team$id
#> [1] 3
#>
#> $linescore$teams$home$team$name
#> [1] "New York Rangers"
#>
#> $linescore$teams$home$team$link
#> [1] "/api/v1/teams/3"
#>
#> $linescore$teams$home$team$abbreviation
#> [1] "NYR"
#>
#> $linescore$teams$home$team$triCode
#> [1] "NYR"
#>
#>
#> $linescore$teams$home$goals
#> [1] 2
#>
#> $linescore$teams$home$shotsOnGoal
#> [1] 34
#>
#> $linescore$teams$home$goaliePulled
#> [1] FALSE
#>
#> $linescore$teams$home$numSkaters
#> [1] 1
#>
#> $linescore$teams$home$powerPlay
#> [1] FALSE
#>
#>
#> $linescore$teams$away
#> $linescore$teams$away$team
#> $linescore$teams$away$team$id
#> [1] 4
#>
#> $linescore$teams$away$team$name
#> [1] "Philadelphia Flyers"
#>
#> $linescore$teams$away$team$link
#> [1] "/api/v1/teams/4"
#>
#> $linescore$teams$away$team$abbreviation
#> [1] "PHI"
#>
#> $linescore$teams$away$team$triCode
#> [1] "PHI"
#>
#>
#> $linescore$teams$away$goals
#> [1] 3
#>
#> $linescore$teams$away$shotsOnGoal
#> [1] 31
#>
#> $linescore$teams$away$goaliePulled
#> [1] FALSE
#>
#> $linescore$teams$away$numSkaters
#> [1] 0
#>
#> $linescore$teams$away$powerPlay
#> [1] FALSE
#>
#>
#>
#> $linescore$powerPlayStrength
#> [1] "Even"
#>
#> $linescore$hasShootout
#> [1] TRUE
#>
#> $linescore$intermissionInfo
#> $linescore$intermissionInfo$intermissionTimeRemaining
#> [1] 0
#>
#> $linescore$intermissionInfo$intermissionTimeElapsed
#> [1] 0
#>
#> $linescore$intermissionInfo$inIntermission
#> [1] FALSE
#>
#>
#> $linescore$powerPlayInfo
#> $linescore$powerPlayInfo$situationTimeRemaining
#> [1] 0
#>
#> $linescore$powerPlayInfo$situationTimeElapsed
#> [1] 0
#>
#> $linescore$powerPlayInfo$inSituation
#> [1] FALSE
#>
#>
#>
#> $decisions
#> ── NHL Game Decisions Information from NHL.com ──────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:11 UTC
#> # A tibble: 3 × 5
#> winner loser firstStar secondStar thirdStar
#> <named list> <named list> <named list> <named list> <named list>
#> 1 <int [1]> <int [1]> <int [1]> <int [1]> <int [1]>
#> 2 <chr [1]> <chr [1]> <chr [1]> <chr [1]> <chr [1]>
#> 3 <chr [1]> <chr [1]> <chr [1]> <chr [1]> <chr [1]>
#>
#> $team_box
#> ── NHL Game Team Box Information from NHL.com ───────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:11 UTC
#> # A tibble: 2 × 16
#> team_id team_name link abbre…¹ tri_c…² goals pim shots power…³ power…⁴
#> <int> <chr> <chr> <chr> <chr> <int> <int> <int> <chr> <int>
#> 1 4 Philadelphia … /api… PHI PHI 2 4 31 50.0 1
#> 2 3 New York Rang… /api… NYR NYR 2 4 34 0.0 0
#> # … with 6 more variables: power_play_opportunities <int>,
#> # face_off_win_percentage <chr>, blocked <int>, takeaways <int>,
#> # giveaways <int>, hits <int>, and abbreviated variable names ¹abbreviation,
#> # ²tri_code, ³power_play_percentage, ⁴power_play_goals
#>
#> $player_box
#> ── NHL Game Players Box Information from NHL.com ────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 38 × 48
#> playe…¹ playe…² link shoot…³ roste…⁴ jerse…⁵ posit…⁶ posit…⁷ posit…⁸ posit…⁹
#> <int> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 8473607 Michal… /api… L Y 30 G Goalie Goalie G
#> 2 8476906 Shayne… /api… L Y 53 D Defens… Defens… D
#> 3 8474668 Dale W… /api… R Y 22 R Right … Forward RW
#> 4 8473512 Claude… /api… R Y 28 C Center Forward C
#> 5 8477948 Travis… /api… L Y 6 D Defens… Defens… D
#> 6 8474037 James … /api… L Y 25 L Left W… Forward LW
#> 7 8478439 Travis… /api… R Y 11 R Right … Forward RW
#> 8 8478500 Ivan P… /api… L Y 9 D Defens… Defens… D
#> 9 8476872 Scott … /api… L Y 21 C Center Forward C
#> 10 8475321 Phil V… /api… L N 44 C Center Forward C
#> # … with 28 more rows, 38 more variables: goalie_stats_time_on_ice <chr>,
#> # goalie_stats_assists <int>, goalie_stats_goals <int>,
#> # goalie_stats_pim <int>, goalie_stats_shots <int>, goalie_stats_saves <int>,
#> # goalie_stats_power_play_saves <int>, goalie_stats_short_handed_saves <int>,
#> # goalie_stats_even_saves <int>,
#> # goalie_stats_short_handed_shots_against <int>,
#> # goalie_stats_even_shots_against <int>, …
#>
#> $skaters
#> ── NHL Game Skaters Information from NHL.com ────────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 41 × 2
#> skaters home_away
#> <int> <chr>
#> 1 8475462 Away
#> 2 8477948 Away
#> 3 8477462 Away
#> 4 8478500 Away
#> 5 8478439 Away
#> 6 8477290 Away
#> 7 8476461 Away
#> 8 8474190 Away
#> 9 8479974 Away
#> 10 8476872 Away
#> # … with 31 more rows
#>
#> $goalies
#> ── NHL Game Goalies Information from NHL.com ────────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 2 × 2
#> goalies home_away
#> <int> <chr>
#> 1 8473607 Away
#> 2 8468685 Home
#>
#> $on_ice
#> ── NHL Game On Ice Information from NHL.com ─────────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 0 × 0
#>
#> $on_ice_plus
#> ── NHL Game On Ice+ Information from NHL.com ────────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 0 × 0
#>
#> $penalty_box
#> ── NHL Game Penalty Box Information from NHL.com ────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 0 × 0
#>
#> $scratches
#> ── NHL Game Scratches Information from NHL.com ──────────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 5 × 1
#> scratches
#> <int>
#> 1 8477850
#> 2 8474627
#> 3 8475738
#> 4 8477950
#> 5 8475855
#>
#> $team_coaches
#> ── NHL Game Team Coaches Information from NHL.com ───────── fastRhockey 0.6.0 ──
#> ℹ Data updated: 2023-03-08 07:47:13 UTC
#> # A tibble: 2 × 7
#> person.fullName person.link position…¹ posit…² posit…³ posit…⁴ home_…⁵
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 Scott Gordon /api/v1/people/null HC Head C… Head C… Head C… Away
#> 2 David Quinn /api/v1/people/null HC Head C… Head C… Head C… Home
#> # … with abbreviated variable names ¹position.code, ²position.name,
#> # ³position.type, ⁴position.abbreviation, ⁵home_away
#>
# }