View source: R/prop.part.names.R
prop.part.names | R Documentation |
Get the names of the tip labels in each bipartition (clade) of a tree.
prop.part.names(phy, singletons = FALSE, inc.nodes = FALSE)
phy |
an object of class |
singletons |
logical, whether to include tips as singletons ( |
inc.nodes |
logical, whether to include nodes in the clades ( |
Thomas Guillerme
prop.part
## The partition's tip labels
prop.part.names(ape::rtree(5))
## The partition's tip labels (including singletons)
prop.part.names(ape::rtree(3), singletons = TRUE)
## The partition's tip labels of a list of trees
lapply(ape::rmtree(2, 3), prop.part.names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.