tree_check: Checks if a tree is a phylo class object otherwise it uses...

View source: R/tree_processing.R

tree_checkR Documentation

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, ...)

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.

Value

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


phylotastic/datelife documentation built on Jan. 17, 2024, 11:10 p.m.