Description Usage Arguments Value Examples
Adds Additional Model Variables to Play-by-Play Data
1 | add_model_variables(pbp_df)
|
pbp_df |
Play-by-play data frame. |
Play-by-play data frame with the following columns added:
"Shotgun_Ind" - Indicator whether or not the play was in shotgun.
"No_Huddle_Ind" - Indicator whether or not the play was no huddle.
"Home_Ind" - Indicator whether or not the possession team was home.
"airEPA_Result" - airEPA for complete passes and EPA for incomplete.
"airWPA_Result" - airWPA for complete passes and WPA for incomplete.
"yacEPA_Result" - yacEPA for complete passes and EPA for incomplete.
"yacWPA_Result" - yacWPA for complete passes and WPA for incomplete.
"Team_Side_Gap" - Combine the team, side, and run gap for O-line proxy
1 2 | # Add model variables:
pbp_df <- pbp_df %>% add_model_variables()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.