Learn R Programming

hockeyR (version 1.3.0)

get_game_shifts: Fetch game shift data

Description

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.

Usage

get_game_shifts(game_id)

Value

A tibble containing each player change as an event

Arguments

game_id

Game ID to scrape

Examples

Run this code
if (FALSE) {
get_game_shifts(2020020561)
}

Run the code above in your browser using DataLab