View source: R/prepare_xg_data.R
| prepare_xg_data | R Documentation | 
Helper function to prepare hockeyR pbp data for xG calculations
prepare_xg_data(x)
x | 
 A play-by-play data frame generated by hockeyR before xG is calculated  | 
A tibble; pbp data with xG model mutations along with identifiers for game and strength state
## Not run: 
pbp <- load_pbp(2022) %>% dplyr::select(-xg)
model_data <- prepare_xg_data(pbp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.