Working through coursera R course, surprised how much I have forgotten already!