Skip to contents

Checks if the input is a phylogeny

Usage

is_phylo(x)

Arguments

x

input to be checked

Value

TRUE or FALSE

See also

Use check_phylogeny to check for a phylogeny

Author

Richèl J.C. Bilderbeek

Examples

check_empty_beautier_folder()

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

# FALSE
is_phylo("nonsense")
#> [1] FALSE
is_phylo(NA)
#> [1] FALSE
is_phylo(NULL)
#> [1] FALSE

check_empty_beautier_folder()