R/md_tools.R
md_encode_matrix.Rd
Encodes a matrix as a data frame with specified columns.
md_encode_matrix(mat, var)
matrix
the symbolic name of the matrix (prefix of column names)
a tibble (data frame) encoding of a matrix