[R] Binding a matrix to a matrix

Rolf Turner r.turner at auckland.ac.nz
Tue Mar 2 23:32:42 CET 2010


On 3/03/2010, at 11:22 AM, Luis Felipe Parra wrote:

> 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

(a) It's not a ***matrix***.  Matrices are ***two*** dimensional.  It's an
array.

(b) Use abind() from the abind package.

(c) RSiteSearch("bind arrays") would have led you straight to this ....
but just RSiteSearch("bind") makes it the 57-th item so you probably
wouldn't have found it that way.

	cheers,

		Rolf Turner


######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list