e837b60828fd043ecd0b470de7444e90fe76e6d21fb2174595f5c7_640_pennies

Use R to Calculate Inflation with the blscrapeR Package

The Consumer Price Index (CPI) is the main standard for tracking the inflation of the U.S. dollar. The various CPI measures are published monthly by the Bureau of Labor Statistics. For this walk-through, we will be using the blcsrapeR package to download our data from the BLS and perform the calculation. The blscrapeR package can Read More

WeeklyEarningsPlotBLS

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

Allumps

Cluster Analysis of a Umpire’s Strikezone in R

Ever wonder how “high” or “low” an umpire’s strikezone is compared to the rest of the leauge? Thanks to some public data and the PitchRx package, it’s easy to use a cluster analysis to figure it out! Tim Timmons vs. the League For this analysis I’m going to pick on umpire Tim Timmons, for no Read More

14710232481_69d7d9194e_pitcher

How to Create a Pitchf/x Database with pitchRX and R

Pitchf/x data is nothing new. It’s been made available by the MLB for several years now through the MLB’s gameday website. The only problem is, if you don’t write Pearl and have strong SQL skills, the data has been a bit difficult to get. And Along Came pitchRx When Carson Sievert created the pitchRx package Read More

Tableau_R_Calc

How to Use R-Studio with Tableau

A little while back we posted an article on the pros and cons of connecting Tableau with R. All the while, we failed to post a tutorial on how to do so. It’s pretty simple really. 1. Open R-Sudio and install the Rserve package . If you need help installing R-Studio on Linux, see our Read More

4705154034_25a54ca1a1_unemployment

How to Scrape Unemployment Data From the BLS API using R-Studio

The Bureau of Labor Statistics (BLS) is one of the most diverse sources of public data around. The one problem…the website is pretty horrible to work with. If you want to download one flat Excel sheet, the BLS website has you covered but if you want to download multiple data sets and compare them you’re Read More