is_yule_tree_prior: Determine if the object is a valid Yule tree prior,

View source: R/is_tree_prior.R

is_yule_tree_priorR Documentation

Determine if the object is a valid Yule tree prior,

Description

Determine if the object is a valid Yule tree prior,

Usage

is_yule_tree_prior(x)

Arguments

x

an object, to be determined if it is a valid Yule tree prior

Value

TRUE if x is a valid Yule tree prior, FALSE otherwise

Author(s)

Richèl J.C. Bilderbeek

See Also

Use create_yule_tree_prior to create a valid Yule tree prior

Examples

check_empty_beautier_folder()

# TRUE
is_yule_tree_prior(create_yule_tree_prior())

# FALSE
is_yule_tree_prior(create_bd_tree_prior())
is_yule_tree_prior(create_cbs_tree_prior())
is_yule_tree_prior(create_ccp_tree_prior())
is_yule_tree_prior(create_cep_tree_prior())

check_empty_beautier_folder()

ropensci/beautier documentation built on July 9, 2024, 6:14 a.m.