sportsdataverse / hoopR

An R package to quickly obtain clean and tidy men's basketball play by play data.
http://hoopr.sportsdataverse.org/
Other
81 stars 17 forks source link

Erroneous play by play data #146

Open SPNE opened 3 months ago

SPNE commented 3 months ago

Describe the bug Bad input data for Chicago-Hornets game with erroneous plays

To Reproduce Steps to reproduce the behavior:

  1. Load pbp data and filter on specific game
    nba_player_pbp <- hoopR::load_nba_pbp(2024:hoopR::most_recent_nba_season())
    nba_player_pbp %>% 
    filter(game_id == 401616465)
  2. Scroll to 4th, 5th,6th, and 7th page and there are plays where the score decreases just for that play
  3. Specifically play ids: 40161646518,40161646522, 40161646532, 40161646534, 40161646538, 40161646540, 40161646543
https://www.espn.com/nba/playbyplay/_/gameId/401616465 All plays are from the first quarter Time Text Away Score Home Score ID
7:24 DeMar DeRozan defensive rebound 4 3 40161646518
7:21 Torrey Craig enters the game for Patrick Williams 4 3 40161646522
6:09 Torrey Craig makes 26-foot three point jumper (Coby White assists) 6 9 40161646532
5:53 Brandon Miller misses 11-foot jumper 6 9 40161646534
5:31 Terry Rozier misses 27-foot three point jumper 6 9 40161646538
5:26 Nick Richards offensive rebound 6 9 40161646540
5:08 Coby White makes layup 6 11 40161646543

Expected behavior Score should not go down for one play and then jump back up

Screenshots Example of some bad plays image

Desktop (please complete the following information):

Additional context This is bad data also present on ESPN