edit_tree: Function to edit phylogenetic tip labels

View source: R/edit_input.R

edit_treeR Documentation

Function to edit phylogenetic tip labels

Description

Auxiliar function for smoothly editing the tip labels of the backbone tree

Usage

edit_tree(tree, tips, edit = NULL, remove.tips = FALSE)

Arguments

tree

A backbone tree.

tips

Character vector with the phylogenetic tips to be edited or removed.

edit

A vector of the same length as tips with the new labels for the specified tips. NULL is only accepted if remove.tips is TRUE.

remove.tips

If TRUE, the specified tips will be pruned from the backbone tree (default is FALSE).

Value

An edited backbone tree.

Author(s)

Ignacio Ramos-Gutierrez, Rafael Molina-Venegas, Herlander Lima

Examples


cats <- edit_tree(cats, tips="Felis_silvestris",
edit= "Felis_silvestris_ssp._silvestris")


iramosgutierrez/randtip documentation built on March 19, 2024, 6:35 p.m.