nflverse / nflverse-pbp

builds play by play and player stats for nflverse/nflverse-data
Creative Commons Attribution 4.0 International
289 stars 66 forks source link

hi I found something odd with the PBPdata. #34

Closed ak47twq closed 4 years ago

ak47twq commented 4 years ago

temp <- pbp %>% filter(special_teams_play == 1, season_type == "POST", rush == 1 | pass == 1) %>% view() when i use this code , the outcome has 2 lines of S.Gostkowski field goal and extra point i wonder if it is something i did or the PBPdata has a typo? 1

mrcaseb commented 4 years ago

You are looking at postseason special teams plays. The two Gostkowski plays didn't happen consecutively. They didn't even happen in the same game.

library(dplyr)
nflfastR:::load_pbp(2016) %>%
  filter(special_teams_play == 1, season_type == "POST", rush == 1 | pass == 1) %>%
  select(game_id, play_id, desc)

grafik

mrcaseb commented 4 years ago

Ben convinced me that I misunderstood the initial problem.

library(dplyr)
nflfastR:::load_pbp(1999:2020) %>%
  filter(special == 1, season_type == "POST", rush == 1 | pass == 1) %>%
  select(game_id, play_id, desc) %>% 
  view()

These two plays are the only special teams plays where pass == 1 grafik

ak47twq commented 4 years ago

thx for reply😍

guga31bb commented 4 years ago

Closing this because we moved the issue to the main nflfastR repo