A personal collection of R functions