I want to make my matrix symmetric with regard to the row names and columns names, for example, I have a matrix
> ma
a b c d
a 1 5 9 13
c 9 10 11 15
b 5 6 10 14
d 13 14 15 16
I want to make it like
> ma
a b c d
a 1 5 9 13
b 5 6 10 14
c 9 10 11 15
d 13 14 15 16
Which means the matrix is symmetric in terms of row.names and column names are equal, so as the matrix is symmetric as well (actually I am working on adjacency matrix, thus it is rather important for adjacency matrix to be symmetric.