Learn R Programming

rphast (version 1.0)

rename.tree: Tree Node Renaming

Description

Rename nodes of trees

Usage

rename.tree(tree, old.names, new.names)

Arguments

tree
A vector of character strings, each containing a newick tree
old.names
A vector of current names to be substituted
new.names
A vector of equal length to old.names giving the substitutions

Value

  • A vector of character strings, in which all nodes with names given in old.names are replaced with values from new.names