Determine of the object is an empty (NA) or valid MRCA prior.

is_mrca_prior(mrca_prior)

Arguments

mrca_prior

a Most Recent Common Ancestor prior, as returned by create_mrca_prior

Value

TRUE if x is an MRCA prior, FALSE otherwise

Author

Richèl J.C. Bilderbeek

Examples

# TRUE
is_mrca_prior(create_mrca_prior())
#> [1] TRUE
# Also 'NA' is a valid MRCA prior,
# denoting that there no MRCA priors
is_mrca_prior(NA)
#> [1] TRUE

# FALSE
is_mrca_prior(NULL)
#> [1] FALSE
is_mrca_prior("nonsense")
#> [1] FALSE