Dear All, I have?some data which were stored in?few??matrices with different orders. Let have?three different matrices a, b and c, which have?the same number of column but different number of row. a <- matrix(1, nrow = 5, ncol = 1) b <- matrix(2, nrow = 10, ncol = 1) c <- matrix(3, nrow = 15, ncol = 1) How could i put all these matrices in an array? Thank you Kagba
have you tried rbind? On Tue, Sep 8, 2009 at 11:16 AM, FMH<kagba2006 at yahoo.com> wrote:> Dear All, > > I have?some data which were stored in?few??matrices with different orders. Let have?three different matrices a, b and c, which have?the same number of column but different number of row. > > > a <- matrix(1, nrow = 5, ncol = 1) > b <- matrix(2, nrow = 10, ncol = 1) > c <- matrix(3, nrow = 15, ncol = 1) > > How could i put all these matrices in an array? > > Thank you > Kagba > > > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Yes, but what actually i want to have is an array that might store these different matrices. ----- Original Message ---- From: Schalk Heunis <schalk.heunis at enerweb.co.za> To: FMH <kagba2006 at yahoo.com> Cc: r-help at r-project.org Sent: Tuesday, September 8, 2009 11:16:29 AM Subject: Re: [R] Data in Array have you tried rbind? On Tue, Sep 8, 2009 at 11:16 AM, FMH<kagba2006 at yahoo.com> wrote:> Dear All, > > I have?some data which were stored in?few??matrices with different orders. Let have?three different matrices a, b and c, which have?the same number of column but different number of row. > > > a <- matrix(1, nrow = 5, ncol = 1) > b <- matrix(2, nrow = 10, ncol = 1) > c <- matrix(3, nrow = 15, ncol = 1) > > How could i put all these matrices in an array? > > Thank you > Kagba > > > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >