Trivial question I imagine..
I have an M by N matrix. For example:
mat <- matrix(data = rnorm(12), nrow = 3, ncol = 4)
and I would like to convert it to an array of M vectors each of length N (meaning an array where each of the vectors is a row in the matrix).