[R] How to stack the columns of matrix

Dr. Peter Schlattmann schlatti at mailer.ukbf.fu-berlin.de
Wed Jun 12 15:36:40 CEST 2002


Dear all,

I need to stack the columns of a matrix with a variable number of columns.
I am aware of 

new<-c(a[,1],a[,2])

if I have a matrix 'a' with e.g. two columns. For a simulation study I
need to stack 
the matrix with a variable number of columns. Is there a way to do this?

Many thanks in advance
Peter


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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