Shravan Vasishth’s Slog (Statistics blog) 2010-10-15 06:47:00
I foolishly tried to convert a matrix M to a vector using vector:vector(M)But this is done column wise, so that adjacent row items end up non-adjacent.The right way to do this seems to be:library(data)unmatrix(M, byrow=TRUE) [Read more...]