[R] Binding a matrix to a matrix

Greg Snow Greg.Snow at imail.org
Tue Mar 2 23:30:06 CET 2010


If it is 3 dimensional then it is an array, not a matrix.  The abind function in the abind package is probably what you want.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Luis Felipe Parra
> Sent: Tuesday, March 02, 2010 3:23 PM
> To: r-help at r-project.org
> Subject: [R] Binding a matrix to a matrix
> 
> Hello I have a 2x10x200 matrix and I would like to bind to it another
> 2x10
> matrix in order to end up with an 2x10x2001 matrix, which command
> should i
> use in order to do this? Thank you
> 
> Felipe Parra
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.



More information about the R-help mailing list