[R] Binding a matrix to a matrix
Peter Ehlers
ehlers at ucalgary.ca
Wed Mar 3 00:14:00 CET 2010
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.
-Peter Ehlers
>
> cheers,
>
> Rolf Turner
>
>
More information about the R-help
mailing list