keep_tip: Keep tips

keep_tipR Documentation

Keep tips

Description

Nominate which tips are to be kept. Others are removed.

Usage

keep_tip(phy, label)

Arguments

phy

A phylo object. The tree to manipulate.

label

A character vector containing tip labels.

Value

A phylo object containing the modified tree.

Examples


library(ape)

tree <- abridge_labels(get_glottolog_trees("Tangkic"))
plot_glotto(tree)

tree2 <- keep_tip(tree, c("lard1243", "kang1283", "kaya1319"))
plot_glotto(tree2)

erichround/glottoTrees documentation built on April 17, 2025, 10:47 a.m.