A function to gather shift data from a given game. Shifts are turned into events to match the style of events in standard game pbp.

Portions of this code are modified versions of code from the NHL scraper by Evolving-Hockey, which in turn were modified from the NHL scraper by Manny Perry.

get_game_shifts(game_id)

Arguments

game_id

Game ID to scrape

Value

A tibble containing each player change as an event

Examples

if (FALSE) {
get_game_shifts(2020020561)
}