hello I have two matrix
Matrix1
C1 C2 C3 C4
R1 1 2 3 4
R2 5 6 7 8
R3 9 10 11 12
R4 13 14 15 16
and another one with the same colnames and rownames but order as I would like:
Matrix2
C2 C1 C4 C3
R1 A B C D
R3 E F G H
R4 I J K L
R2 M N O P
and from this one I would like to order to Matrix1
in the same way and get:
C2 C1 C4 C3
R1 1 1 4 3
R3 9 9 12 11
R4 13 13 16 15
R2 6 5 8 7
thanks for your help