Here's some R to get started. The next step is going to take some work, I think.
Merge pull request #1 from usuallycwdillon/master

Here's some R to get started.