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

set kick distance through stat ids #422

Merged
merged 6 commits into from
Aug 31, 2023
Merged

set kick distance through stat ids #422

merged 6 commits into from
Aug 31, 2023

Conversation

mrcaseb
Copy link
Member

@mrcaseb mrcaseb commented Aug 30, 2023

In #421 I attempted to fill NA kick_distance on kickoffs or punts through distance to goal line. However, it turned out that NFL's definition of kick distance (esp. if the kick reaches the endzone) depends on wheter or not the ball is returned.
It also turned out that we actually have the correct kick distance in stat IDs 32, 43, and 44. It was just an inherited mistake from nflscrapR not to write kick distance in these cases.
This PR fixes that probelm so we now should have accurate kick distance on all kickoffs and punts

@github-actions
Copy link

github-actions bot commented Aug 30, 2023

@mrcaseb mrcaseb changed the title set kickoff distance through stat ids set kick distance through stat ids Aug 31, 2023
@mrcaseb mrcaseb marked this pull request as ready for review August 31, 2023 12:28
@mrcaseb mrcaseb requested a review from guga31bb August 31, 2023 12:30
@mrcaseb mrcaseb merged commit 76e100c into master Aug 31, 2023
6 checks passed
@mrcaseb mrcaseb deleted the fix-kick-distance branch August 31, 2023 12:35
@mrcaseb mrcaseb restored the fix-kick-distance branch September 1, 2023 07:42
@mrcaseb mrcaseb deleted the fix-kick-distance branch September 1, 2023 07:44
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 this pull request may close these issues.

2 participants