Add order_by = id_play to all lead functions out of caution.
Add negligibly important penalty vector and move all play_type vecs to start of function
Add penalty logic to pred_df_epa2 function for the following variables:
new_down
new_distance
new_yardline
return penalty_flag and penalty_declined columns from prep_df_epa2 into return df from cfb_pbp_data function.
remove kickoff down ==5 ifelse statement. It doesn't feel like it needs to be in there and causes problems as is. Was introduced into the prep_df_epa2 function code 4 days ago, not sure why.
clean_pbp.R
ep_calcs.R
Add order_by = id_play to all lead functions out of caution.
Add negligibly important penalty vector and move all play_type vecs to start of function
Add penalty logic to pred_df_epa2 function for the following variables:
return penalty_flag and penalty_declined columns from prep_df_epa2 into return df from cfb_pbp_data function.
remove kickoff down ==5 ifelse statement. It doesn't feel like it needs to be in there and causes problems as is. Was introduced into the prep_df_epa2 function code 4 days ago, not sure why.