Determine of the object is an empty (NA
) or valid MRCA prior.
Source: R/is_mrca_prior.R
is_mrca_prior.Rd
Determine of the object is an empty (NA
) or valid MRCA prior.
Arguments
- mrca_prior
a Most Recent Common Ancestor prior, as returned by
create_mrca_prior
Examples
check_empty_beautier_folder()
# 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
check_empty_beautier_folder()