rmClade | R Documentation |
Returns a tree with a clade removed
rmClade(tree, id)
tree |
|
id |
node ID parent of clade to be removed |
Inverse function of getSubtree()
. Takes a tree
and removes a clade based on an internal node specified. Node
is specified with id
, all descending nodes and tips are removed.
The resulting tree will replace the missing clade with a tip of id
.
addClade
, getSubtree
, rmTips
https://github.com/DomBennett/treeman/wiki/manip-methods
t1 <- randTree(100)
# remove a clade
t2 <- rmClade(t1, "n2")
summary(t1)
summary(t2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.