root.tree: Root a tree

Description Usage Arguments Value Author(s) See Also Examples

Description

Root a tree.

Usage

1
root.tree(nodematrix,outgroup)

Arguments

nodematrix

the tree node matrix

outgroup

the node used as outgroup

Value

The function returns a rooted tree.

Author(s)

Liang Liu lliu@uga.edu

See Also

rootoftree, is.rootedtree

Examples

1
2
3
data(unrooted.tree)
nodematrix<-read.tree.nodes(unrooted.tree[1])$nodes
root.tree(nodematrix,23)

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