rename_labs: Rename labels Given a set of old and new labels, switch...

View source: R/rename_labs.R

rename_labsR Documentation

Rename labels Given a set of old and new labels, switch between the two.

Description

Rename labels Given a set of old and new labels, switch between the two.

Usage

rename_labs(match_df, tree, old_label = "oldlab", new_label = "newlab")

Arguments

match_df

A dataframe with matched columns for the old and new labels.

tree

A tree to rename tip labels for.

old_label

The name of the column in match_df containing the old tip labels.

new_label

The name of the column in match_df containing the new tip labels.

Value

The tree with renamed tip labels.


svteichman/TreeVizPackage documentation built on June 22, 2022, 11:21 p.m.