lbenz730 / ncaahoopR

An R package for working with NCAA Basketball Play-by-Play Data
MIT License
198 stars 48 forks source link

get_pbp_game() not working for certain games #113

Closed danmalter closed 10 months ago

danmalter commented 10 months ago

It seems like there might be an error in get_pbp_game(), but I can't quite figure out where. In the below example, get_pbp("Duke", "2023-24") scrapes all 12 of Duke's games so far, but get_pbp_game only works for the below 8 games. For example, they have a game against Baylor with game ID 401576153, but it's not being picked up by get_pbpgame() even though data exists on ESPN. https://www.espn.com/mens-college-basketball/playbyplay//gameId/401576153

Example: duke <- get_pbp("Duke", "2023-24")

library(dplyr) duke %>% select(game_id, home, away) %>% unique()

Output: game_id home away 401576147 Duke Dartmouth 401576150 Duke Bucknell 401576151 Duke La Salle 401576152 Duke So Indiana 401604090 Georgia Tech Duke 401576153 Duke Charlotte 401576154 Duke Hofstra 401574497 Duke Queens

lbenz730 commented 10 months ago

Seems it was messing up Neutral site games. Just patched it in latest version.