-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add sack player and yards information #180
Comments
We should also rewrite the definition of |
I think this could be different in some instances. Not all QB Hits are Sacks, and not all Sacks are QB Hits. In particular, I wonder if there's a play when two defenders arrive at the QB at the same time: one strips the ball (the sacker), and the other impacts the QB strongly enough to put him on the ground (the QB Hitter). You might run into issues on plays like this. |
I probably didn't make clear what I want to do. I want to add |
Ok I guess I just don't understand what is being suggested (especially in terms of how sack_player is being written/defined, and how qb_hit_player might be re-defined). But I'm very excited for this feature of nflfastR! |
FWIW, I've historically used I think this works? Regardless of whether stat id 83 is present or not. |
Yep this should work because stat id 20 sets sack == 1 and the corresponding yards to yards_gained. So probably a |
https://github.com/mrcaseb/nflfastR/blob/c3bf6e9ed83e64699bb95078007efdeab012db26/R/helper_tidy_play_stats.R#L963-L964
Currently we only assign
sack == 1
for stat ID 83It would be very easy to add
sack_player_name
,sack_player_id
andsack_yards
Don't forget to look at stat ID 84!
The text was updated successfully, but these errors were encountered: