root.tree {phybase}R Documentation

Root a tree

Description

Root a tree.

Usage

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@oeb.harvard.edu

See Also

rootoftree, is.rootedtree

Examples

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

[Package phybase version 1.1 Index]