From b1bf4c2874a5118b79d5b62c6267c6fd3aeaba2f Mon Sep 17 00:00:00 2001 From: Ben Baldwin <1425357+guga31bb@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:32:43 -0400 Subject: [PATCH] fix the min --- R/helper_add_nflscrapr_mutations.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/helper_add_nflscrapr_mutations.R b/R/helper_add_nflscrapr_mutations.R index 2a13b9a1..2ea56cf6 100644 --- a/R/helper_add_nflscrapr_mutations.R +++ b/R/helper_add_nflscrapr_mutations.R @@ -667,7 +667,7 @@ make_model_mutations <- function(pbp) { fix_scrambles <- function(pbp) { # skip below code if <= 2005 is not in the data - if (min(pbp$season > 2005)) return(pbp) + if (min(pbp$season) > 2005) return(pbp) pbp %>% dplyr::mutate(