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

View source: R/is_mrca_prior.R

is_mrca_priorR Documentation

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)

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(s)

Richèl J.C. Bilderbeek

Examples

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()

richelbilderbeek/beastscriptr documentation built on April 9, 2024, 2:28 p.m.