PCMTreeGetPartition {PCMBase}R Documentation

Get the starting branch' nodes for each part on a tree

Description

Get the starting branch' nodes for each part on a tree

Usage

PCMTreeGetPartition(tree)

Arguments

tree

a phylo object with an edge.part member denoting parts. The function assumes that each part covers a linked set of branches on the tree.

Details

We call a starting branch the first branch from the root to the tips of a given part. A starting node is the node at which a starting branch ends.

Value

a named integer vector with elements equal to the starting nodes for each part in tree and names equal to the labels of these nodes.

See Also

PCMTreeSetPartition

Examples

set.seed(1, kind = "Mersenne-Twister", normal.kind = "Inversion")
PCMTreeGetPartition(PCMTree(ape::rtree(20)))

[Package PCMBase version 1.2.14 Index]