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
Have you installed the latest development version of the package(s) in question?
I have installed the latest development version of the package.
What version of the package do you have?
4.5.1
Describe the bug
In the current code for sack_fumbles_lost in nflfastr::calculate_player_stats(), it calculates:
sack_fumbles_lost = [sum](.data$fumble_lost == 1 & .data$fumbled_1_player_id == .data$passer_player_id)
I would suggest a check in here of whether fumble_recovery_1_team is different than the player who fumbled in here.
.data$fumbled_1_team!=.data$fumble_recovery_1_team
Statistically, the lost fumble should only be charged to Bigsby.
This is of course not a common occurrence but could be applied to rushing fumbles and receiving fumbles as well
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
In the current code for sack_fumbles_lost in nflfastr::calculate_player_stats(), it calculates:
sack_fumbles_lost = [sum](.data$fumble_lost == 1 & .data$fumbled_1_player_id == .data$passer_player_id)
I would suggest a check in here of whether fumble_recovery_1_team is different than the player who fumbled in here.
.data$fumbled_1_team!=.data$fumble_recovery_1_team
Statistically, the lost fumble should only be charged to Bigsby.
This is of course not a common occurrence but could be applied to rushing fumbles and receiving fumbles as well
Reprex
Expected Behavior
I would expect 0 for sack_fumbles_lost
nflverse_sitrep
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: