On Dec 3, 2004, at 5:39 AM, Gwenael Jacob wrote:
Dear,
Some analysis (linear regression) can only be done from a vectorized dataset whereas others require a matrix (Mantel tests). I use the two analyses and thus need to format my data in matrix and vector. I spent some time trying to solve the problem and I just gave up. Did anyone knows how to transform a matrix into a vector and back-transform a vector into a matrix?
See ?as.vector and ?matrix. Do those answer your question? If not, perhaps you could give a bit more detail of what you have tried.
Sean
______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html