R code I wrote for classes in the University of Texas at Austin's MS in Business Analytics program