jflancer / bigballR

Package for working with NCAA Basketball Data
Other
61 stars 19 forks source link

Lineup Changes in Play-by-Play #48

Open cobrastats opened 7 months ago

cobrastats commented 7 months ago

The lineups listed in play-by-play will have an issue if a substitution happens during a deadball that doesn't come at the end of a possession.

For example, the the game Purdue vs. Iowa (Game_ID = 5602982) during Poss_Num=107, Purdue's possession begins with players 5 players on the floor for Purdue. In the game, there was a deflection out of bounds off of Iowa (so nothing recorded in the pbp). The game then goes to TV timeout, returns with it still being Purdue's ball and still possession #107. However, Purdue subbed in 4 new players during the TV timeout.

Because the possession number remained the same (and from my understanding, the substitutions are reflected on the following possession), the game possession #107 continues and 2 players for Purdue take shot attempts after the TV timeout during possession #107. However, neither of those players are recorded in Away.1:Away.5 for that possession because the substitutions were not reflected in the lineup until the start of possession #108.