Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fumble charged to wrong player #162

Closed
guga31bb opened this issue Jan 11, 2021 · 0 comments · Fixed by #202
Closed

Fumble charged to wrong player #162

guga31bb opened this issue Jan 11, 2021 · 0 comments · Fixed by #202

Comments

@guga31bb
Copy link
Member

Ben Roethlisberger gets charged for the bad snap on the first play of the game even though the fumble was charged to the center. Could override name and rusher (and associated IDs) by using the fumble field.

pbp <- readRDS(url("https://raw.githubusercontent.com/guga31bb/nflfastR-data/master/data/play_by_play_2020.rds"))
pbp %>% filter(week == 18, home_team == "PIT") %>% dplyr::slice(3) %>% select(desc, name, rusher, fumbled_1_player_name, epa)
# A tibble: 1 x 5
  desc                                                                                      name        rusher       fumbled_1_player_n~   epa
  <chr>                                                                                     <chr>       <chr>        <chr>               <dbl>
1 (14:54) (Shotgun) 7-B.Roethlisberger Aborted. 53-M.Pouncey FUMBLES at PIT 22, touched at~ B.Roethlis~ B.Roethlisb~ M.Pouncey           -8.03
@guga31bb guga31bb linked a pull request Feb 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant