Re: [R] R- merging two matrix

2012-09-10 Thread arun
t;-as.matrix(merge(A,B[order(rownames(B)),],by=0)) row.names(C)<-C[,1] C<-C[,-1]  colnames(C)<-NULL  C A.K. - Original Message - From: Milan Bouchet-Valat To: Sridhar Iyer Cc: r-help@r-project.org Sent: Monday, September 10, 2012 3:22 AM Subject: Re: [R] R- merging two matrix Le dim

Re: [R] R- merging two matrix

2012-09-10 Thread Milan Bouchet-Valat
Le dimanche 09 septembre 2012 à 19:29 -0500, Sridhar Iyer a écrit : > Hi, > > I have two matrices. (same size, same number of rows, > same names for the rows - one has data in sorted > order, another one master data in unsorted order. I need to > combine both). > > Rows names of Matrix A > P, Q

[R] R- merging two matrix

2012-09-09 Thread Sridhar Iyer
Hi, I have two matrices. (same size, same number of rows, same names for the rows - one has data in sorted order, another one master data in unsorted order. I need to combine both). Rows names of Matrix A P, Q, R, S, T, U, V ...(some order) - each row has 4 values Row names of Matr