Learn R Programming

beautier (version 2.6.12)

get_tree_prior_n_distrs: Get the number of distributions a tree prior has

Description

Get the number of distributions a tree prior has

Usage

get_tree_prior_n_distrs(tree_prior)

Value

the number of distributions a tree prior has

Arguments

tree_prior

a tree priors, as returned by create_tree_prior

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

# 2: birth_rate_distr and death_rate_distr
get_tree_prior_n_distrs(create_bd_tree_prior())

# 0:none
get_tree_prior_n_distrs(create_cbs_tree_prior())

# 1: pop_size_distr
get_tree_prior_n_distrs(create_ccp_tree_prior())

 # 2:pop_size_distr and growth_rate_distr
get_tree_prior_n_distrs(create_cep_tree_prior())

# 1: birth_rate_distr
get_tree_prior_n_distrs(create_yule_tree_prior())

check_empty_beautier_folder()

Run the code above in your browser using DataLab