relabel_tree: Replace tree tip labels

Description Usage Arguments Value

Description

Replace tree tip labels

Usage

1
relabel_tree(tree, old, new, quote = FALSE, drop = character(0))

Arguments

tree

(phylo object) phylogenetic tree with tip labels

old

(character) Tip labels from tree which should be changed. This does not have to be all the labels in the tree.

new

(character) Replacement tip labels. Should have the same length as old.

quote

(logical) If TRUE, double quotes are added around the values in new before they are used for replacement. This is helpful if they (may) contain characters which will must be quoted in Newick format.

drop

(character) (optional) Tip labels which should be dropped before replacement.

Value

The tree with modified tip labels.


brendanf/phylotax documentation built on March 3, 2021, 2:21 p.m.