hc2Newick {ctc} | R Documentation |
Convert hclust objects to Newick format files.
hc2Newick(hc, flat=TRUE)
hc |
a hclust object (as returned by the function hclust
in the package mva ) |
flat |
a boolean (see section value). |
If flat=TRUE
the result is a string (that you can write in a
file).
If flat=FALSE
the result is a list (of lists). Each list
is consituted of the elements left
, right
and dist
.
Laurent (laurent@cbs.dtu.dk)