Hi Alexey,

  The package phylobase allows you to do this either for all the tips, or
any/all nodes of your tree:

library(phylobase)
data(geospiza)
## for the tips
depthTips(geospiza)
## for one node
nodeDepth(geospiza, 16)
## for all internal nodes
nodeDepth(geospiza, nodeId(geospiza, "internal"))

  Cheers,
  -- François

        [[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]/

Reply via email to