are_tree_priors: Determine if x consists out of tree_priors objects

View source: R/are_tree_priors.R

are_tree_priorsR Documentation

Determine if x consists out of tree_priors objects

Description

Determine if x consists out of tree_priors objects

Usage

are_tree_priors(x)

Arguments

x

the object to check if it consists out of tree_priors objects

Value

TRUE if x, or all elements of x, are tree_prior objects

Author(s)

Richèl J.C. Bilderbeek

See Also

Use create_yule_tree_prior to create a Yule tree prior

Examples

check_empty_beautier_folder()

yule_tree_prior <- create_yule_tree_prior()
bd_tree_prior <- create_bd_tree_prior()
both_tree_priors <- list(yule_tree_prior, bd_tree_prior)
# TRUE
are_tree_priors(yule_tree_prior)
# TRUE
are_tree_priors(bd_tree_prior)
# TRUE
are_tree_priors(both_tree_priors)

check_empty_beautier_folder()

richelbilderbeek/beautier documentation built on April 4, 2024, 12:33 p.m.