Learn R Programming

phyloTop (version 2.1.2)

phyloCheck: 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

phyloCheck(tree)

Value

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

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.

Author

Caroline Colijn c.colijn@imperial.ac.uk

Michelle Kendall michelle.louise.kendall@gmail.com