Skip to content
Prev 126701 / 398500 Next

rearrange data columns

Dear R users, 
 I need to to the the following. Let a= 1 2 3 
                                         4 5 6 
 and b= -1 -2 -3  be (2x3) matrices.
        -4 -5 -6 
 I need to combine the two matrices into a new (2x6) matrix like this: 
 
 ab = ( 1 -1 2 -2 3 -3 ) 
        4 -4 5 -5 6 -6 
 
 How can this be done in R? 
 


-----------------------------------------------------------------
?????? ??? - ?? ???????! www.survivor.btv.bg