openWAR in 2014
The first step, of course, is to load the
Getting the 2014 Data
Now we need some data. While data from the previous two years is bundled into the
openWAR package, data from the current season is not – so we’ll have to download it. We have made this as painless as possible. All we have to do is tell the
getData() function the time interval over which we want to download game data, and it will do the rest. In this case, we want all games from the season opener played by the Dodgers and Diamondbacks in Australia on March 22nd, through today’s games.
Warning: this will take a while to run – possibly an hour or so.
View original post 640 more words