A collection of useful utility functions in R