Determine if the object is a valid m parameter

is_m_param(m_param)

Arguments

m_param

an m parameter, as created by create_m_param

Value

TRUE if x is a valid m parameter, FALSE otherwise

Author

Richèl J.C. Bilderbeek

Examples


is_m_param(create_alpha_param())
#> [1] FALSE
is_m_param(create_beta_param())
#> [1] FALSE
is_m_param(create_clock_rate_param())
#> [1] FALSE
is_m_param(create_kappa_1_param())
#> [1] FALSE
is_m_param(create_kappa_2_param())
#> [1] FALSE
is_m_param(create_lambda_param())
#> [1] FALSE
is_m_param(create_m_param())
#> [1] TRUE
is_m_param(create_mean_param())
#> [1] FALSE
is_m_param(create_mu_param())
#> [1] FALSE
is_m_param(create_rate_ac_param())
#> [1] FALSE
is_m_param(create_rate_ag_param())
#> [1] FALSE
is_m_param(create_rate_at_param())
#> [1] FALSE
is_m_param(create_rate_cg_param())
#> [1] FALSE
is_m_param(create_rate_ct_param())
#> [1] FALSE
is_m_param(create_rate_gt_param())
#> [1] FALSE
is_m_param(create_s_param())
#> [1] FALSE
is_m_param(create_scale_param())
#> [1] FALSE
is_m_param(create_sigma_param())
#> [1] FALSE

is_m_param(NA)
#> [1] FALSE
is_m_param(NULL)
#> [1] FALSE
is_m_param("nonsense")
#> [1] FALSE
is_m_param(create_jc69_site_model())
#> [1] FALSE
is_m_param(create_strict_clock_model())
#> [1] FALSE
is_m_param(create_yule_tree_prior())
#> [1] FALSE
is_m_param(create_mcmc())
#> [1] FALSE