Checks if the input is a phylogeny

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

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

  testit::assert(!is_phylo("nonsense"))
  testit::assert(!is_phylo(NA))
  testit::assert(!is_phylo(NULL))