Closed rickstarblazer closed 1 year ago
Thanks for this submission. It's indeed a bug.
If one team doesn't have any play on offense in the pbp data, e.g. the 2022 Broncos in week 13, the opponent defense doesn't have any series data to compute. Summarising with weekly = FALSE ended up in NAs.
This also revealed that we need a full_join of defense data to offense data, because the Denver Offense didn't do anything in the redzone in that game.
Will be fixed soon
Is there an existing issue for this?
Have you installed the latest development version of the package(s) in question?
What version of the package do you have?
4.5.1
Describe the bug
have pbp data with filter(yardline_100 <= 20) . When I run calculate_series_conversion_rates() on this data set, sometimes returns NAs for all the defensive conversion rates.
I think this happens when a series contains a turnover that leads to a touchback.
Reprex
Expected Behavior
The defense conversion feilds (def_n, def_scr, def_td) should return valid values
nflverse_sitrep
Screenshots
No response
Additional context
No response