is_phylo: Checks if the input is a phylogeny

View source: R/is_phylo.R

is_phyloR Documentation

Checks if the input is a phylogeny

Description

Checks if the input is a phylogeny

Usage

is_phylo(x)

Arguments

x

input to be checked

Value

TRUE or FALSE

Author(s)

Richèl J.C. Bilderbeek

See Also

Use check_phylogeny to check for a phylogeny

Examples

check_empty_beautier_folder()

# TRUE
phylogeny <- ape::read.tree(text = "(a:15,b:15):1;")
is_phylo(phylogeny)

# FALSE
is_phylo("nonsense")
is_phylo(NA)
is_phylo(NULL)

check_empty_beautier_folder()

beautier documentation built on Nov. 2, 2023, 5:08 p.m.