Examples of basic reusable R code