rowProds: Form Row Products

Description Usage Arguments Value See Also Examples

Description

Form row products for numeric arrays

Usage

1
rowProds(x, na.rm = FALSE, dims = 1)

Arguments

x

an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame.

na.rm

logical. Should missing values (including NaN) be omitted from the calculations?

dims

integer: Which dimensions are regarded as rows to sum over. The product is over dimensions dims+1.

Value

A numeric or complex array of suitable size, or a vector if the result is one-dimensional.

See Also

Other utility: aggMatrix, badRows, cellIdx, expand, merge.formula

Examples

1
2
x <- expand(rnorm(5), 3)
rowProds(x)

SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.