Learn R Programming

treeman (version 1.1.4)

getSubtree: Get subtree

Description

Return tree descending from id.

Usage

getSubtree(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Returns a TreeMan, parallelizable. id must be an internal node.

See Also

getPrnt, addClade, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

Run this code
# NOT RUN {
library(treeman)
data(mammals)
# get tree of apes
ape_id <- getPrnt(mammals, ids=c('Homo_sapiens', 'Hylobates_concolor'))
apes <- getSubtree(mammals, id=ape_id)
summary(apes)
# }

Run the code above in your browser using DataLab