R programs from Coursera course