Learn R Programming

datelife (version 0.6.8)

tree_check: Checks if a tree is a phylo class object otherwise it uses input_process. Additionally it can check if tree is a chronogram with phylo_check

Description

Checks if a tree is a phylo class object otherwise it uses input_process. Additionally it can check if tree is a chronogram with phylo_check

Usage

tree_check(tree = NULL, ...)

Value

If tree is correctly formatted, it returns a phylo object.

Arguments

tree

A tree either as a newick character string or as a phylo object.

...

Arguments passed on to phylo_check

brlen

Boolean. If TRUE it checks if phylo object has branch lengths.

dated

Boolean. If TRUE it checks if phylo object is ultrametric.