keberwein / mlbgameday

Multi-core processing of 'Gameday' data from Major League Baseball Advanced Media. Additional tools to parallelize large data sets and write them to a database.
Other
41 stars 8 forks source link

Minor league data #12

Open berkeley44 opened 5 years ago

berkeley44 commented 5 years ago

When I place league = "aaa" into the get_payload command, only mlb data is pulled. The syntax i use is below: events <- get_payload(start = "2018-04-01", end = "2018-04-07", league = "aaa")

Is there a different way to get just aaa data? Is it possible the get_payload needs to be modified to access the gdx server?

keberwein commented 5 years ago

@berkeley44 Currently the package only pulls MLB data. The league argument was placed there as a placeholder for future features.

The problem with the AAA data is, some games have an "innings_all.xml" file, while others do not. While it would probably be possible to loop through all of the individual "inning.xml" files, I just haven't gotten that logic locked down yet.

I'm going to leave this issue open as an enhancement.