R functions helpful in working with chemical data