net_to_mat function

Create a contingency table from a data.frame