Snippets of R taken from course Data Science