R/dual-value.r

Defines functions value.numeric value.dual value

Documented in value value.dual value.numeric

#' @rdname d
#' @export
value <- function(x) UseMethod("value")

#' @rdname d
#' @exportS3Method value dual
value.dual <- function(x) x@x

#' @rdname d
#' @exportS3Method value numeric
value.numeric <- function(x) x

Try the salad package in your browser

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

salad documentation built on April 4, 2025, 1:06 a.m.