Spark Online Training by Edureka

sumprod: Sum and Product.

Description Usage Arguments Value Author(s) Examples

Description

Compute sum or product of madness objects.

Usage

1
2
3
4
5
## S4 method for signature 'madness'
sum(x, ..., na.rm = FALSE)

## S4 method for signature 'madness'
prod(x, ..., na.rm = FALSE)

Arguments

x

a numeric or madness object.

...

ignored here.

na.rm

logical. Should missing values (including ‘NaN’) be removed?

Value

a madness object representing a scalar value.

Author(s)

Steven E. Pav shabbychef@gmail.com

Examples

1
2
3
4
xv <- matrix(rnorm(5*5),ncol=5)
xmad <- madness(xv)
prod(xv)
sum(xv)


Search within the madness package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.