hoopR icon indicating copy to clipboard operation
hoopR copied to clipboard

Erroneous play by play data

Open SPNE opened this issue 3 months ago • 0 comments

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)
  1. Scroll to 4th, 5th,6th, and 7th page and there are plays where the score decreases just for that play
  2. 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):

  • OS: Windows 10
  • Browser: RStudio
  • Version hoopR 2.1.0

Additional context This is bad data also present on ESPN

SPNE avatar Mar 19 '24 02:03 SPNE