Tutorial in R Programming, mostly from: https://class.coursera.org/rprog-016/l