Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
ESPN’s Bill Simmons (aka The Sports Guy) recently suggested that the primary cause of dwindling interest in Red Sox games by fans is that baseball games these days are too long. "It’s not that fun to spend 30-45 minutes driving to a game, paying for parking, parking, waiting in line to get in, finding your seat … and then, spend the next three-plus hours watching people play baseball", he says. But this is a relatively new phenomenon: are the games really any longer today than they used to be?
Inspired by the column and having recently learned about the power of R‘s ggplot2 package to visualize data, R user (and baseball fan) Ryan Elmore decided to find out. He wrote code to scrape from the Web data on the lengths of all MLB games since 1970, and then created some lovely visualizations using ggplot 2 and R. For example, here’s a scatterplot of the lengths of games from all teams over time, with a smooth trend indicating a clear lengthening of the game, at least through the turn of the century:
So it does seem that Boston games are indeed getting longer, lending credence to the Sports Guy’s claim. However: I’m no baseball expert, but I’m pretty sure there have been more than 3 Red Sox games since 2004, and the apparent increase may just be a fluke. Given that Ryan has posted his code in R to create the chart, maybe someone with access to more data can verify the result? If you do, let us know in the comments.
The Log Cabin: Are MLB games getting longer?
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.