You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behaviour
Wilkins is correctly credited with 1 def_fumble_recovery_opp and 9 def_fumble_recovery_yards_opp and 1 def_fumbles but is incorrectly credited with 1 def_fumble_recovery_own and 9 def_fumble_recovery_yards_own (both should be 0).
where Wilkins recovers the other team's fumble, fumbles the ball, and then his teammate (Jevon Holland) recovers his fumble. There was an own fumble recovery by the defense, but it is incorrectly credited to Wilkins (with yards) and also correctly credited to Holland (with no yards) on this play.
The text was updated successfully, but these errors were encountered:
This issue is related to the fact that we can't differentiate between recoveries after fumble of own team and opponent team with the current nflfastR dataset.
The only solution is to differentiate own and opp in stat ids 55-58 and 59-62 respectively.
To make that possible we would have to add potentially 8 new variables to the dataset and probably (not necessarily) rename all current fumble recovery variables.
Adding variables is problematic because
it breaks data bases,
it increases the pbp file size with mostly NA variables,
it causes a complete rebuild across all seasons,
it's a lot of work for the developer.
For now, we have decided to live with this blurriness. Next season, however, will be the first time that users can put their hands on defensive player stats. If there are any further problems or if more users encounter this problem, we will add the corresponding variables next offseason.
Yes
2. Describe the bug
calculate_player_stats_def()
returns the wrong value indef_fumble_recovery_own
variable.3. Reprex
Expected Behaviour
Wilkins is correctly credited with 1
def_fumble_recovery_opp
and 9def_fumble_recovery_yards_opp
and 1def_fumbles
but is incorrectly credited with 1def_fumble_recovery_own
and 9def_fumble_recovery_yards_own
(both should be 0).nflverse_sitrep()
sitrep
The problem play is
where Wilkins recovers the other team's fumble, fumbles the ball, and then his teammate (Jevon Holland) recovers his fumble. There was an own fumble recovery by the defense, but it is incorrectly credited to Wilkins (with yards) and also correctly credited to Holland (with no yards) on this play.
The text was updated successfully, but these errors were encountered: