is_tree_prior: Determine if an object is a valid tree prior

View source: R/is_tree_prior.R

is_tree_priorR Documentation

Determine if an object is a valid tree prior

Description

Determine if an object is a valid tree prior

Usage

is_tree_prior(x)

Arguments

x

an object

Value

TRUE if x is a valid tree_prior, FALSE otherwise

Author(s)

Richèl J.C. Bilderbeek

See Also

tree priors can be created by create_tree_prior

Examples

check_empty_beautier_folder()

is_tree_prior(create_bd_tree_prior())
is_tree_prior(create_yule_tree_prior())
!is_tree_prior("nonsense")

check_empty_beautier_folder()

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