matrix2list {noia} | R Documentation |
Turns a matrix into a list. Each column of the matrix will become an element of the list.
matrix2list(mat)
mat |
A matrix, with named columns. |
A list named according to the names of the columns of the matrix.
This function is an internal function of the package "noia"
, and is
not designed to be used in another context.
m <- matrix (c(1,2,3,4,5,6), ncol=2) colnames(m) <- c("First", "Second") matrix2list(m)