rmClade: Remove a clade from a tree

Description Usage Arguments Details See Also Examples

View source: R/manip-methods.R

Description

Returns a tree with a clade removed

Usage

1
rmClade(tree, id)

Arguments

tree

TreeMan object

id

node ID parent of clade to be removed

Details

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.

See Also

addClade, getSubtree, rmTips https://github.com/DomBennett/treeman/wiki/manip-methods

Examples

1
2
3
4
5
6
library(treeman)
t1 <- randTree(100)
# remove a clade
t2 <- rmClade(t1, 'n2')
summary(t1)
summary(t2)

treeman documentation built on July 8, 2020, 7:28 p.m.