Learn R Programming

beautier (version 2.6.12)

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

Description

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

Usage

is_mrca_prior(mrca_prior)

Value

TRUE if x is an MRCA prior, FALSE otherwise

Arguments

mrca_prior

a Most Recent Common Ancestor prior, as returned by create_mrca_prior

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

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

# FALSE
is_mrca_prior(NULL)
is_mrca_prior("nonsense")

check_empty_beautier_folder()

Run the code above in your browser using DataLab