[R] Combining two matrices

From: mark salsburg <mark.salsburg_at_gmail.com>
Date: Thu 21 Jul 2005 - 03:03:27 EST

Can someone please refer me to a function or method that resolves this structuring issue:

I have two matrices with identical colnames (89), but varying number of observations:

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@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 21 03:08:17 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:53 EST