[R] vector to matrix transformation
Gwenael Jacob
gwenael.jacob at wsl.ch
Fri Dec 3 11:39:57 CET 2004
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?
Thanks by advance,
Gwenaël Jacob
--
-------------------------------------
Gwenaël JACOB
Division Biodiversity
Swiss Federal Research Institute WSL
Zuercherstrasse 111/Postfach
CH-8903 Birmensdorf
SWITZERLAND
Phone : ++41 1 7392 504
Fax : ++41 1 7392 215
More information about the R-help
mailing list