R/are_init_mrca_priors.R

Defines functions are_init_mrca_priors

Documented in are_init_mrca_priors

#' Determine if x consists out of initialized MRCA priors
#' @param x the object to check if it consists out of
#'   initialized MRCA priors
#' @return TRUE if x, or all elements of x, are initialized MRCA priors
#' @author Richèl J.C. Bilderbeek
#' @export
are_init_mrca_priors <- function(
  x
) {
  if (!are_mrca_priors(x)) return(FALSE)
  for (i in x) {
    if (!is_init_mrca_prior(i)) return(FALSE)
  }
  return(TRUE)
}

Try the beautier package in your browser

Any scripts or data that you put into this service are public.

beautier documentation built on Nov. 2, 2023, 5:08 p.m.