R/domain_numeric.R

Defines functions domain_numeric

Documented in domain_numeric

#' Define allowable range of values
#'
#' @param from Minimum of allowed range
#' @param to Maximum of allowed range
#' @seealso \code{\link{detect_value_range_violations}}
#' @return No return value, called for side effects
#' @export
#'


domain_numeric <- function(from, to) {
  list(type = "numeric",
       from = from,
       to = to) -> range
  class(range) <- c("value_range", class(range))
  range
}

Try the daqapo package in your browser

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

daqapo documentation built on July 14, 2022, 9:07 a.m.