Skip to content

Commit

Permalink
posteam in the first "GAME" play desc should be NA
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Sep 11, 2023
1 parent 19bbc9f commit 354674e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helper_scrape_nfl.R
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ fix_posteams <- function(pbp){
posteam = dplyr::case_when(
stringr::str_detect(.data$play_description, "^Timeout ") ~ NA_character_,
is.na(.data$parsed_posteam) ~ .data$posteam,
.data$play_description == "GAME" ~ .data$posteam,
.data$play_description == "GAME" ~ NA_character_,
TRUE ~ .data$parsed_posteam
),
# drop helper
Expand Down

0 comments on commit 354674e

Please sign in to comment.