a set of R functions that I find useful