added functions for working with data frames units, thanks christian