Snippets of R code used in assignments at UCSD for Math 181A, 181B, 185, 282B