Library of utlity functions for R