Description Usage Arguments Details Value
Format shot location data for spatial model for NHL goal scoring probability
1 | shots2model(shots)
|
shots |
a dataframe, specifically, a shots data frame downloaded from the package |
Will be expanded later on. - Automatically removes penalty shots and empty net situations. - Currently only considers reg. season games, could be updated.
The function returns a dataframe with four columns: x and y locations, and number of shots and goals from each location.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.