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

return_team missing in "2021_01_SF_DET" #275

Closed
ak47twq opened this issue Sep 16, 2021 · 1 comment · Fixed by #278
Closed

return_team missing in "2021_01_SF_DET" #275

ak47twq opened this issue Sep 16, 2021 · 1 comment · Fixed by #278
Labels
bug Something isn't working

Comments

@ak47twq
Copy link

ak47twq commented Sep 16, 2021

return_team missing in "2021_01_SF_DET"
seasonnum1 <- 2021
seasonnum2 <- 2021
weeknum1 <- 1
weeknum2 <- 1
RETURN_TD<-pbp%>%
filter(season>=seasonnum1, season<=seasonnum2, week>=weeknum1, week<=weeknum2, return_touchdown==1) %>%
select(game_id,season, week, qtr, down, posteam, time, yrdln, ydstogo, desc, play_type, return_team, return_yards, return_touchdown, yards_gained, posteam_score, defteam_score, total, spread_line ) %>%
collect()

output like:
desc:(1:20) (Shotgun) 16-J.Goff pass short middle intended for 88-T.Hockenson INTERCEPTED by 57-D.Greenlaw [55-D.Ford] at DET 39. 57-D.Greenlaw for 39 yards, TOUCHDOWN.
play_type:pass
return_team:NA

i wonder if the return_team should be SF?

@guga31bb
Copy link
Member

Need to add return team to stat ID 26 like it's there in 25: https://github.com/nflverse/nflfastR/blob/master/R/helper_tidy_play_stats.R#L172

@guga31bb guga31bb added the bug Something isn't working label Sep 16, 2021
@guga31bb guga31bb linked a pull request Sep 16, 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
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants