Learn R Programming

beautier (version 2.6.12)

check_tree_prior: Check if the tree prior is a valid tree prior

Description

Calls stop if the tree priors are invalid

Usage

check_tree_prior(tree_prior)

Value

nothing

Arguments

tree_prior

a tree priors, as returned by create_tree_prior

Author

Richèl J.C. Bilderbeek

See Also

Use create_tree_prior to create a valid tree prior

Examples

Run this code
check_empty_beautier_folder()

check_tree_prior(create_yule_tree_prior())
check_tree_prior(create_bd_tree_prior())
check_tree_prior(create_cbs_tree_prior())
check_tree_prior(create_ccp_tree_prior())
check_tree_prior(create_cep_tree_prior())

# Can use list of one tree prior
check_tree_prior(list(create_yule_tree_prior()))

check_empty_beautier_folder()

Run the code above in your browser using DataLab