unroottree: Unroot a tree

Description Usage Arguments Value Author(s) See Also Examples

Description

unroot a tree.

Usage

1
unroottree(nodematrix)

Arguments

nodematrix

the tree node matrix

Value

The function returns an unrooted tree.

Author(s)

Liang Liu lliu@uga.edu

See Also

rootoftree, root.tree

Examples

1
2
3
4
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
unroottree(nodematrix)

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.