prop.part.names: Get the partitions tip labels from a tree

View source: R/prop.part.names.R

prop.part.namesR Documentation

Get the partitions tip labels from a tree

Description

Get the names of the tip labels in each bipartition (clade) of a tree.

Usage

prop.part.names(phy, singletons = FALSE, inc.nodes = FALSE)

Arguments

phy

an object of class "phylo"

singletons

logical, whether to include tips as singletons (TRUE) or not (FALSE - default)

inc.nodes

logical, whether to include nodes in the clades (TRUE) or not (FALSE - default). If TRUE, phy must have node labels.

Author(s)

Thomas Guillerme

See Also

prop.part

Examples

## 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)


TGuillerme/landvR documentation built on July 4, 2025, 10:16 p.m.