Skip to content

Commit

Permalink
resolving oakland issues
Browse files Browse the repository at this point in the history
  • Loading branch information
john-b-edwards committed Sep 12, 2023
1 parent 8cde725 commit e7547cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/update_pbp_participation.R
Original file line number Diff line number Diff line change
Expand Up @@ -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() |>
Expand Down

0 comments on commit e7547cd

Please sign in to comment.