rowProds(x, na.rm=FALSE, method=c("direct", "expSumLog"), ...)
colProds(x, na.rm=FALSE, method=c("direct", "expSumLog"), ...)
product(x, na.rm=FALSE, ...)
TRUE
, missing values are ignored, otherwise not.character
string specifying how each product
is calculated.method="expSumLog"
, then then product
() function
is used, which calculates the produce via the logarithmic transform
(treating negative values specially). This improves the precision
and lowers the risk for numeric overflow.
If method="direct"
, the direct product is calculated via
the prod
() function.