[R] matrix: rows to columns conversion

Rado Bonk rbonk at host.sk
Mon Jul 8 15:48:31 CEST 2002


I'm new to "R". I have a matrix of 6x12. I need to produce matrix of
12x6, such that rows in new matrix are columns from original matrix, and
columns in a new matrix are rows from the original one. I was playing
with rbind(), and cbind() with no success.



Radoslav Bonk M.S.
Dept. of Physical Geography and Geoecology
Faculty of Natural Sciences, Comenius University
Mlynska Dolina 842 15, Bratislava
tel: 00421 (0)2 602 96 250
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list