[R] Combining two matrices
Pedro de Barros
pbarros at ualg.pt
Wed Jul 20 19:14:53 CEST 2005
Is there a column of common values that you want to use to merge the two
matrices together? Or do you just want to replicate matrix A enough times
to have the same number of rows as B? I could think this was the case, but
16063 is not a multiple of 217.
Anyway, you will have to change the colnames of at least one of them.
At 18:03 20/07/2005, you wrote:
>Can someone please refer me to a function or method that resolves this
>I have two matrices with identical colnames (89), but varying number
>matrix A matrix B
>217 x 89 16063 x 89
>I want to creat one matrix C that has both matrices adjacent to one
>another, where matrix A is duplicated many times to create the same
>row number for matrix B, i.e. 16063.
>matrixA matrix B
>so matrix C will be 16063 x 178
>I've tried cbind() and merge() with no success..
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help