From e7547cd92edf747a1b847082e33c880f4ed229e0 Mon Sep 17 00:00:00 2001 From: John Edwards Date: Tue, 12 Sep 2023 14:43:16 -0700 Subject: [PATCH] resolving oakland issues --- R/update_pbp_participation.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/R/update_pbp_participation.R b/R/update_pbp_participation.R index 917fdd26..4e90c5ac 100644 --- a/R/update_pbp_participation.R +++ b/R/update_pbp_participation.R @@ -82,12 +82,12 @@ pbp_participation <- players_on_play ) |> # oak -> lv exception - dplyr::mutate(tmp_possession_team = nflreadr::clean_team_abbrs(possession_team, current_location = TRUE, keep_non_matches = TRUE)) |> + # dplyr::mutate(tmp_possession_team = nflreadr::clean_team_abbrs(possession_team, current_location = TRUE, keep_non_matches = TRUE)) |> dplyr::summarise( - offense_players = gsis_id[tmp_possession_team == team] |> na.omit() |> paste(collapse = ";"), - n_offense = gsis_id[tmp_possession_team == team] |> na.omit() |> length(), - defense_players = gsis_id[tmp_possession_team != team] |> na.omit() |> paste(collapse = ";"), - n_defense = gsis_id[tmp_possession_team != team] |> na.omit() |> length(), + offense_players = gsis_id[possession_team == team] |> na.omit() |> paste(collapse = ";"), + n_offense = gsis_id[possession_team == team] |> na.omit() |> length(), + defense_players = gsis_id[possession_team != team] |> na.omit() |> paste(collapse = ";"), + n_defense = gsis_id[possession_team != team] |> na.omit() |> length(), .groups = "drop" ) |> dplyr::ungroup() |>