From 5a6e2960261ee7daa72e315a3b965b272ac604fe Mon Sep 17 00:00:00 2001 From: Sebastian Carl Date: Mon, 9 Sep 2024 10:30:11 +0200 Subject: [PATCH] fix typo --- DESCRIPTION | 2 +- R/helper_additional_functions.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f01edd70..91633656 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: nflfastR Title: Functions to Efficiently Access NFL Play by Play Data -Version: 4.6.1.9015 +Version: 4.6.1.9016 Authors@R: c(person(given = "Sebastian", family = "Carl", diff --git a/R/helper_additional_functions.R b/R/helper_additional_functions.R index d14b2bec..ba55af84 100644 --- a/R/helper_additional_functions.R +++ b/R/helper_additional_functions.R @@ -116,7 +116,7 @@ clean_pbp <- function(pbp, ...) { ), # in very rare cases, the pass logic can fail. We do a hard coded overwrite here because it's not worth the time # to overthink the logic to catch weird play descriptions. - pass = fix_werid_pass_plays(.data$pass, .data$game_id, .data$play_id), + pass = fix_weird_pass_plays(.data$pass, .data$game_id, .data$play_id), #if there's a rusher and it wasn't a QB kneel or pass play, it's a run play rush = dplyr::if_else(!is.na(.data$rusher) & .data$qb_kneel == 0 & .data$pass == 0, 1, 0), #fix some common QBs with inconsistent names @@ -407,7 +407,7 @@ add_qb_epa <- function(pbp, ...) { # Function that fixes false "pass" positives in some hard coded plays where # the parser logic reached its limit -fix_werid_pass_plays <- function(pass, game_id, play_id){ +fix_weird_pass_plays <- function(pass, game_id, play_id){ combined_id <- paste(game_id, play_id, sep = "_") false_positives <- c( "1999_01_ARI_PHI_1611",