rowcolval_to_mat function

Collapse a tidy data frame into a matrix with named rows and columns