Check tree format (internal)

Description

Coerces the tree into a rooted, binary tree of class phylo. Note that this function used to require trees to be of class phylo4 but the package now uses class phylo throughout.

Usage

1
phyloCheck(tree)

Arguments

tree

a tree of class phylo or phylo4. For most functions in this package the tree should be binary and rooted, hence this function is called to check. If necessary the tree will be coerced into a binary rooted tree using multi2di, if possible.

Value

A binary, rooted tree of class phylo, if possible.

Author(s)

Caroline Colijn c.colijn@imperial.ac.uk

Michelle Kendall michelle.louise.kendall@gmail.com