AddGameEvents: Adds all game events for game_id to the database for analysis

Description Usage Arguments Examples

View source: R/db_manipulation.R

Description

Add all events from a game_id to the 'events' table. Also adds all players in the game to the 'players' table to allow for searching by name to retrieve player_id. Finally, adds the total time on ice for each player to the 'player_toi' table. This allows for calculation of certain statistics based on time usage. Will not write if game already exists in the database!

Usage

1
AddGameEvents(game_ids)

Arguments

game_ids

List, list of game_ids. Use GetGameIdRange to find

Examples

1
2

nhlscrape documentation built on March 26, 2020, 5:29 p.m.