powered by
Compute sum or product of madness objects.
madness
# S4 method for madness sum(x, ..., na.rm = FALSE)# S4 method for madness prod(x, ..., na.rm = FALSE)
# S4 method for madness prod(x, ..., na.rm = FALSE)
a madness object representing a scalar value.
a numeric or madness object.
ignored here.
logical. Should missing values (including ‘NaN’) be removed?
Steven E. Pav shabbychef@gmail.com
xv <- matrix(rnorm(5*5),ncol=5) xmad <- madness(xv) prod(xv) sum(xv)
Run the code above in your browser using DataLab