rename tip label of phylogenetic tree
Examples
tree <- rtree(3)
d <- data.frame(old = paste0('t', 1:3), new = LETTERS[1:3])
rename_taxa(tree, d)
#>
#> Phylogenetic tree with 3 tips and 2 internal nodes.
#>
#> Tip labels:
#> A, B, C
#>
#> Rooted; includes branch lengths.
rename_taxa(tree, d, old, new)
#>
#> Phylogenetic tree with 3 tips and 2 internal nodes.
#>
#> Tip labels:
#> A, B, C
#>
#> Rooted; includes branch lengths.