openWAR in 2014
Exploring Baseball Data with R
Over at Stats In the Wild, my collaborator Greg Matthews has been monitoring the results of openWAR
for the current season. How is he doing this?
The first step, of course, is to load the openWAR
package.
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.
Since we…
View original post 640 more words
Posted on August 22, 2014, in Uncategorized. Bookmark the permalink. Leave a comment.
Leave a comment
Comments 0