This function takes an xts object, and using its attribute information, will convert
information in the object into the desired output, selected by the user. For example, all
combinations of moving from one of 'discrete', 'log', 'difference' and 'level', to another different
data type (from the same list) are permissible.