R practices from coursera