Calculate Wages and Benefits in R with blscrapeR

The most difficult thing about working with BLS data is gaining a clear understanding on what data are available and what they represent. Some of the more popular data sets can be found on the BLS Databases, Tables & Calculations website. The selected examples below do not include all series or databases. Install blscrapeR The Read More


Hacking The New Lahman Package 4.0-1 with R-Studio

The developers of the Lahman package for R have recently updated the package to include 2014 MLB stats! For those not familiar, this R package recreates Sean Lahman’s Baseball Database into a quick and handy little R package. I’ve written on the Lahman package before, and even suggested adding a few advanced statistics to the Read More


Adding Pitching Stats to the Lahman R Package

Lately I’ve rediscovered the Lahman package for R. Since I’ve got a Lahman database on my localhost, I normally use a db connection in R to grab the data I need. In the process it’s easy to forget how quick and easy the Lahman package makes it to gather baseball data. No Love for the Read More


R-Studio: Putting the Lahman Database on Steroids

It’s easy to calculate advanced baseball metrics with the Lahman database. I’ve always compared the database to indoor plumbing, something we all use every day but sometimes take for granted. The beauty of the database is it’s not cluttered with useless information, just simple counting stats but often times we’re looking for more. If your Read More


A New Baseball Stat: Considering Weighted Isolated Power: wISO

When I hear about a new baseball metric, my ears perk up. I recently stumbled on an article introducing a new baseball metric, weighted isolated power or wISO. As a metric, ISO attempts to measure a batter’s power by taking a similar formula to SLG and removing single base hits as to leave only the Read More


Top 5 Replacement Players That Will Surprise You: Baseball’s WAR

Wins above replacement (WAR) is the wild wild west of unstandardized baseball stats. With the 2014 MLB playoffs about a month away, I’ve started looking at some surprises in the season’s WAR rankings. I ran some standard calculations in Ben Baumer’s openWAR package, and among the surprises were the names on the list of “replacement Read More