R code and markdown for Machine Learning Course Project