Udacity stats in R