Snippets of R code on miscellaneous non-trivial topics