View source: R/tree_manipulation.R
replace_branch | R Documentation |
Replace a branch on a Strata
replace_branch(x, y, node)
x |
Strata object |
y |
Strata object |
node |
The name of a node in x where y will be placed |
## Not run:
data(saccharomyces)
x = saccharomyces
y = subtree(saccharomyces, 's2')
y = strata_convert(y, target='tip', to='name')
x = replace_branch(x, y, "s2")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.