Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 CPX pbp files missing most data #362

Open
jordanalex91 opened this issue Mar 3, 2025 · 0 comments
Open

2024 CPX pbp files missing most data #362

jordanalex91 opened this issue Mar 3, 2025 · 0 comments

Comments

@jordanalex91
Copy link

jordanalex91 commented Mar 3, 2025

Describe the bug
The 2024 pitch-by-pitch files for the CPX appear to be incomplete, missing about 2/3rd of the game data. the 2023 pbp files are complete, however.

To Reproduce
As an example, pull the data for May 8th, game_pk 772202 (https://www.milb.com/gameday/fcl-marlins-vs-fcl-astros/2024/05/08/772202/final/summary/all). Most of the game data is missing from the pbp file.

gameids <- map_df(.x = seq.Date(as.Date('2024-05-08'),
as.Date('2024-05-08'),
'day'),
~get_game_pks_mlb(date = .x,
level_ids = c(1,11,12,13,14,16))
)

df <- map(.x = gameids_check %>%
filter(officialDate== "2024-05-08") %>%
pull(game_pk),
~safe_milb(game_pk = .x)) %>%
map('result') %>%
bind_rows()

filter(df, game_pk == 772202)

The game pbp file only inlcudes 16 PA whereas it should have like 70

@jordanalex91 jordanalex91 changed the title CPX CPX pbp files missing most data Mar 3, 2025
@jordanalex91 jordanalex91 changed the title CPX pbp files missing most data 2024 CPX pbp files missing most data Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant