Skip to content

Commit

Permalink
no kick off if prev play is weather delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Mar 7, 2024
1 parent 27ed061 commit ae16097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helper_add_nflscrapr_mutations.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ add_nflscrapr_mutations <- function(pbp) {
lead_ko = case_when(
dplyr::lead(.data$kickoff_attempt) == 1 &
.data$game_id == dplyr::lead(.data$game_id) &
!stringr::str_detect(tolower(.data$play_description), "(injured sf )|(tonight's attendance )|(injury update )|(end quarter)|(timeout)|( captains:)|( captains )|( captians:)|( humidity:)|(note - )|( deferred)|(game start )") &
!stringr::str_detect(tolower(.data$play_description), "(injured sf )|(tonight's attendance )|(injury update )|(end quarter)|(timeout)|( captains:)|( captains )|( captians:)|( humidity:)|(note - )|( deferred)|(game start )|( game has been suspended)") &
!stringr::str_detect(.data$play_description, "GAME ") &
!.data$play_description %in% c("GAME", "Two-Minute Warning", "The game has resumed.") &
is.na(.data$two_point_conv_result) &
Expand Down

0 comments on commit ae16097

Please sign in to comment.