A collection of useful routines in R