isPhylo: Rboretum Phylo Checker

View source: R/isPhylo.R

isPhyloR Documentation

Rboretum Phylo Checker

Description

This function returns TRUE if the passed object is of class phylo; Otherwise, FALSE

Usage

isPhylo(test_object, check_rooted)

Arguments

test_object

R object to check

check_rooted

OPTIONAL: If TRUE, also check if tree is rooted. [Default: FALSE, don't check rootedness]

Value

TRUE if phylo, otherwise FALSE

Examples

isPhylo(tree) # Check if 'tree' is a phylo object
isPhylo(tree,check_rooted = TRUE) # Check if 'tree' is a rooted phylo object

BobLiterman/Rboretum documentation built on July 6, 2023, 7:46 p.m.