Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Sep 9, 2024
1 parent d2ae6c6 commit 5a6e296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions R/helper_additional_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 5a6e296

Please sign in to comment.