powered by
convert a matrix to a list
mat2list(x)
a list that contains matrix columns as its elements
the input matrix
x <- matrix(1:15, nrow = 3) mat2list(x)
Run the code above in your browser using DataLab