Skip to content

Commit

Permalink
amend participation to append games (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 authored Dec 26, 2023
1 parent 23c9217 commit 72b2492
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/update_pbp_participation.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ pbp_participation <-
dplyr::any_of(c('defense_man_zone_type','defense_coverage_type'))
)

plays <- dplyr::bind_rows(plays_template, plays)
current_participation <- nflreadr::load_participation(season) |>
dplyr::anti_join(plays, by = c("nflverse_game_id"))

plays <- dplyr::bind_rows(plays_template, current_participation, plays) |>
dplyr::arrange(nflverse_game_id)

cli::cli_process_start("Uploading participation data to nflverse-data")

Expand Down

0 comments on commit 72b2492

Please sign in to comment.