TMATRIX

TMATRIX(t;f1;f2) converts two-way table t into a matrix, with classifying factor f1 corresponding to the rows, and classifying factor f2 corresponding to the columns.