Determine if an object is a valid tree prior

is_tree_prior(x)

Arguments

x

an object

Value

TRUE if x is a valid tree_prior, FALSE otherwise

See also

tree priors can be created by create_tree_prior

Author

Richèl J.C. Bilderbeek

Examples

  testit::assert(is_tree_prior(create_bd_tree_prior()))
  testit::assert(is_tree_prior(create_yule_tree_prior()))
  testit::assert(!is_tree_prior("nonsense"))