I got two large matrix with this format:
row.names  1    2     3   ...          row.names  1    2   3  ....   
A          0.1 0.2 0.3                   A        1    1   1 
B          0.4 0.9 0.3                   B        2    3   1
C          0.9 0.9 0.4                   C        1    3   1
.
And I want to obtain something like this:
X  S   CONF P
1  A   0.1  1
1  B   0.4  2
1  C   0.9  1
2  A   0.2  1
2  B  ......
Getting the colnames in one column and repeat the rownames and the information per each of the column names.
Thank you so much
 
     
    