Alexey,
See ?dist.nodes in ape. If your tree is named tr, you'll get exactly
what you want with:
dist.nodes(tr)[, Ntip(tr) + 1]
which extracts one column of the matrix returned by dist.nodes.
best,
Emmanuel
Le 21/05/2014 06:56, Alexey Fomin a écrit :
Which package allow calculate all distances from all nods to the root?
Alexey.
[[alternative HTML version deleted]]
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/