Code examples from the blog www.datascienceriot.com. Mostly sabermetrics and baseball analysis written in R.