mi_to_numer function

Convert data to numeric, and for the ID column convert with fixed levels.