[R] Converting a asymmetric data frame to symmetric matrix

K. Taraka Rama taraka at fripost.org
Wed Sep 18 15:18:49 CEST 2013


Hi,

I have a pair-wise distance vector. FOr objects: a,b,c, it is: (a,b) :5, 
(b,c) :6, (a,c) : 7. I want to convert it into a symmetric matrix. I 
used cast function but the function does not fill the matrix like a 
triangular matrix. How do I get a symmetric matrix?

-- 
--Taraka



More information about the R-help mailing list