R/is_init_param.R

Defines functions is_init_param

Documented in is_init_param

#' Determine if x is an initialized parameter,
#'   as created by \link{create_param}
#' @param x the object to check if it is an
#'   initialized parameter
#' @return \link{TRUE} if x is an initialized parameter,
#' \link{FALSE} otherwise
#' @author Richèl J.C. Bilderbeek
#' @export
is_init_param <- function(
  x
) {
  if (!is_param(x)) {
    stop("'x' must be a parameter")
  }
  !is_one_na(x$id)
}
richelbilderbeek/beastscriptr documentation built on April 9, 2024, 2:28 p.m.