Description Usage Arguments Details References
Return either the number of tips, the total branch length or the root to tip distance of a phylogenetic tree
1 |
tree |
phylogenetic tree (ape class) |
type |
type of size to be calcualted: |
I often need to quickly work out the size of a tree. This often means
writing length (tree$tip.label)
over and over... but with this function
you can simply write getSize(tree)
, that's a saving of 10 characters
(no sniffing matter for the hard core programmer) plus it looks neater. Not
to mention saving your brain time too.
No references yet! https://github.com/DomBennett/MoreTreeTools.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.