shots2model: Format shot data for model

Description Usage Arguments Details Value

Description

Format shot location data for spatial model for NHL goal scoring probability

Usage

1
shots2model(shots)

Arguments

shots

a dataframe, specifically, a shots data frame downloaded from the package nhlmodelr.

Details

Will be expanded later on. - Automatically removes penalty shots and empty net situations. - Currently only considers reg. season games, could be updated.

Value

The function returns a dataframe with four columns: x and y locations, and number of shots and goals from each location.


jedalong/nhlmodelr documentation built on May 25, 2019, 6:23 p.m.