R/lum_create_tree_prior_arg.R

Defines functions lum_create_tree_prior_arg

Documented in lum_create_tree_prior_arg

#' Create the \code{tree_prior} argument
#' @inheritParams default_params_doc
#' @author Richèl J.C. Bilderbeek
#' @export
lum_create_tree_prior_arg <- function(tree_prior) {
  arg <- "tree_prior ="
  if (tree_prior == "Yule Model") {
    return(paste(arg, "create_yule_tree_prior()"))
  }
  if (tree_prior == "Birth Death Model") {
    return(paste(arg, "create_bd_tree_prior()"))
  }
  stop("Unknown tree prior")
}
ropensci/lumier documentation built on March 15, 2021, 7:03 p.m.