Skip to contents

Find shared tip labels of a collection of trees. This function is useful when pruning a collection of related trees to a trees of same size and taxa.

Usage

common_tips(x)

Arguments

x

a collection of trees of class "multiPhylo"

Value

intersection of tip labels across all trees

Examples

trees = rankedPhylo(3:7)
common_tips(trees)
#> [1] "t1" "t2" "t3"