Skip to content

Convert a List of Distances to a Distance Matrix

2 messages · Charles Willis, jim holtman

#
Here is one way of doing it:
+ A B .5
+ A C .25
+ B C .5"), as.is=TRUE)
+                cbind(match(x[[2]], x.names), match(x[[1]], x.names)))
A   B    C
A 0.00 0.5 0.25
B 0.50 0.0 0.50
C 0.25 0.5 0.00
On Wed, Mar 12, 2008 at 7:45 PM, Charles Willis
<willis.charlie at gmail.com> wrote: