manip_factor_2_numeric function

converts factor to numeric preserving numeric levels and order in character levels.