getUnitsOfResult function

Get the units of the result variables