Learn R Programming

beautier (version 2.6.12)

is_phylo: Checks if the input is a phylogeny

Description

Checks if the input is a phylogeny

Usage

is_phylo(x)

Value

TRUE or FALSE

Arguments

x

input to be checked

Author

Richèl J.C. Bilderbeek

See Also

Use check_phylogeny to check for a phylogeny

Examples

Run this code
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()

Run the code above in your browser using DataLab