Description Usage Arguments Details Value
Creates the post-play inputs for the Expected Points model to predict on for each game
1 | prep_epa_df_after(dat)
|
dat |
(Data.Frame required) Clean Play-by-Play DataFrame pulled from 'cfb_pbp_dat()' |
Prep for EPA calculations at the end of the play. Requires the following columns be present:
game_id
id_play
drive_id
down
distance
period
yards_to_goal
play_type
'dat' with the following columns appended/modified:
turnover_indicator.
down.
new_id.
new_down.
distance.
yards_to_goal.
yards_gained.
turnover.
drive_start_yards_to_goal.
end_of_half.
new_yardline.
new_distance.
new_log_ydstogo.
new_Goal_To_Go.
new_TimeSecsRem.
new_Under_two.
first_by_penalty.
lag_first_by_penalty.
lag_first_by_penalty2.
first_by_yards.
lag_first_by_yards.
lag_first_by_yards2.
row.
new_series.
firstD_by_kickoff.
firstD_by_poss.
firstD_by_yards.
firstD_by_penalty.
yds_punted.
yds_punt_gained.
missing_yard_flag.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.