tree.subtree: Subtree

tree.subtreeR Documentation

Subtree

Description

The function returns the subtree under the node inode

Usage

tree.subtree(inode, name, nodematrix)

Arguments

inode

the root node of the subtree

name

the species names

nodematrix

the tree node matrix

Value

The function returns the tree string of the subtree.

Author(s)

Liang Liu lliu@harvard.edu

See Also

del.node

Examples

treestr<-"((((H:0.00402,C:0.00402):0.00304,G:0.00707):0.00929,O:0.01635):0.1,W:0.12);"
nodematrix<-read.tree.nodes(treestr)$nodes
spname<-read.tree.nodes(treestr)$names
tree.subtree(7,spname,nodematrix)

lliu1871/phybase documentation built on April 21, 2024, 3:16 a.m.