is.rootedtree {phybase}R Documentation

Is the tree rooted or not

Description

This function can test if the tree is rooted.

Usage

is.rootedtree(tree)

Arguments

tree tree string or tree node matrix

Value

The function returns TRUE if the tree is a rooted tree. Otherwise, it returns FALSE.

Author(s)

Liang Liu lliu@oeb.harvard.edu

See Also

is.clock

Examples

data(unrooted.tree)
nodematrix<-read.tree.nodes(unrooted.tree[1])$nodes
is.rootedtree(nodematrix)

data(rooted.tree)
is.rootedtree(rooted.tree[1])

[Package phybase version 1.1 Index]