getSize: Get the size of a phylogenetic tree

Description Usage Arguments Details References

Description

Return either the number of tips, the total branch length or the root to tip distance of a phylogenetic tree

Usage

1
getSize(tree, type = c("ntips", "pd", "rtt"))

Arguments

tree

phylogenetic tree (ape class)

type

type of size to be calcualted: ntips (default), total branch length pd or root to tip distance rtt

Details

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.

References

No references yet! https://github.com/DomBennett/MoreTreeTools.


DomBennett/MoreTreeTools documentation built on May 6, 2019, 2:51 p.m.