R code for Johns Hopkins R Programming Class