tableconvert function

Convert contingency table in table of reduced code