remove_tip: Remove tips

remove_tipR Documentation

Remove tips

Description

From a tree, remove tips identified by their node labels.

Usage

remove_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 <- remove_tip(tree, c("kang1283", "kaya1319"))
plot_glotto(tree2)

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