[R] How to stack the columns of matrix
Giovanni Petris
GPetris at uark.edu
Wed Jun 12 17:00:52 CEST 2002
as.vector is probably what you need.
Giovanni
--
__________________________________________________
[ ]
[ Giovanni Petris GPetris at uark.edu ]
[ Department of Mathematical Sciences ]
[ University of Arkansas - Fayetteville, AR 72701 ]
[ Ph: (479) 575-6324, 575-8630 (fax) ]
[ http://definetti.uark.edu/~gpetris/ ]
[__________________________________________________]
> Date: Wed, 12 Jun 2002 15:36:40 +0200 (CEST)
> From: "Dr. Peter Schlattmann" <schlatti at mailer.ukbf.fu-berlin.de>
> Sender: owner-r-help at stat.math.ethz.ch
> Precedence: SfS-bulk
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Content-Length: 663
>
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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