A collection of misc. yet hopefully handy code that I use in R