View source: R/cophenetic.phylo.R
cophenetic.phylo | R Documentation |
cophenetic.phylo
computes the pairwise distances between the
pairs of tips from a phylogenetic tree using its branch lengths.
dist.nodes
does the same but between all nodes, internal and
terminal, of the tree.
## S3 method for class 'phylo'
cophenetic(x)
dist.nodes(x)
x |
an object of class |
a numeric matrix with colnames and rownames set to the names of the
tips (as given by the element tip.label
of the argument
phy
), or, in the case of dist.nodes
, the numbers of the
tips and the nodes (as given by the element edge
).
Emmanuel Paradis
read.tree
to read tree files in Newick format,
cophenetic
for the generic function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.