[R] Binding a matrix to a matrix

Rolf Turner r.turner at auckland.ac.nz
Wed Mar 3 00:43:15 CET 2010


On 3/03/2010, at 12:14 PM, Peter Ehlers wrote:

> On 2010-03-02 15:32, Rolf Turner wrote:
>> 
>> 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.
> 
> But
> 
>  libary(sos)
>  ???"bind arrays"
> 
> would find it as the first item.

The point is that the OP would have to know that his first item was
an ***array*** and not a matrix in order to find the appropriate reference.
Given the word ``array'' RSiteSearch() works adequately.

	cheers,

		Rolf
######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################



More information about the R-help mailing list