README.md

icescrapR Readme

Eric Fastner

icescrapR Overview

A package of functions and data sets to process the RTSS (play-by-play) data from nhl.com

Available Functions

RTSS Modifications

enhanced_PBP(): Adds additional data to an NHL RTSS data frame

Game Results

get_game_results(): Creates a summary of all game results contained in an RTSS data frame

get_team_results(): Creates a summary of all game results contained in an RTSS data frame, grouped by team

Game Stats

get_skater_stats(): Calculates various stats for all skaters contained in an RTSS data frame, grouped by game

get_goalie_stats(): Calculates various stats for all goalies contained in an RTSS data frame, grouped by game

get_team_stats(): Calculates various stats for all teams contained in an RTSS data frame, grouped by game

Visualizations

viz_corsi_graph(): Creates a vizualization of all corsi events by each team for a specific game

viz_corsi_postions(): Creates a vizualization of all corsi events and their positions on the rink for a specific game

viz_team_summary(): Creates a vizualization of various stats for both teams for a specific game

Available Data Sets

Team Alignments

alignment_20002011: Team Conference and Division Alignments for 2000 - 2011

alignment_20112013: Team Conference and Division Alignments for 2011 - 2013

alignment_present: Present Team Conference and Division Alignments

Visualizations

rink: A visual representation of the ice rink for use with ggplot2

team_colors: A data frame containing Primary, Secondar, Tiertiary, and Quarternary hex colors for each team

Misc

corsi_events: A list of corsi events and their corresponding ggplot shape numbers

gs_weights_skaters: A list of the components used to calculate gamescore and their corresponding weights

gs_weights_goalies: A list of the components used to calculate gamescore and their corresponding weights



EFastner/icescrapR documentation built on Jan. 15, 2022, 1:11 p.m.