-
Notifications
You must be signed in to change notification settings - Fork 51
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
Punt Yards bug #53
Comments
I also see that kick_distance is NA on blocked punts, but I'd like to advocate for kick_distance to be 0 on blocked punts, since punt_attempt == 1, there actually was a "kick" on the play. |
Found official NFl language on measuring kick_distance for punts here: |
Found another example of kick_distance == NA on a punt. This play (3267 | 2015_04_DET_SEA) was a muffed return which is also showing NA kick_distance for some reason. I'm thinking as long as punt_attempt == 1, kick_distance should never be NA. |
These were omissions on our part as the stat IDs were present- thank you! |
The missing kick distance for punts to the end zone has been fixed using stat id 31. However, this stat id is only recorded if the returner exits the end zone. Not for touchbacks.
|
We could probably use |
This was brought up in the discord tonight, throwing my hat into the ring of something like kick_distance = if_else(punt_attempt == 1 & punt_blocked == 0, readr::parse_number(stringr::str_extract(desc, "punts ([0-9])+ yards")), kick_distance) ? dislike using regex but if it's not recorded for the specific stat ID's I'm unsure what to use otherwise |
For future reference: final fix of this issue happened in #422 by using the corresponding stat IDs |
I'm noticing that kick_distance, which generally fills in for Punt Yards on punts, is NA on Touchback plays. But this should be showing the distance of the punt still, not NA.
This might apply to any time a punt was kicked into the end zone, as for these punts:
2424 | 2019_12_DET_WAS
5456 | 2018_11_KC_LA
I'm not sure if a punt goes from the 50 to the -2 yard line if that's a 50 or 52 yard punt in the NFL's books, but I think kick_distance should be consistent with whatever NFL counts as "punt yards" on the play.
The text was updated successfully, but these errors were encountered: