Column and row-wise products
Column and row-wise products.
colprods(x, method = "direct") rowprods(x)
x |
A matrix with numbers. |
method |
The type of colCumProds to use. For direct multiplication use "direct" or "expsumlog" for a more numerically stable, but slower way. |
The product of the numbers in a matrix is returned either column-wise or row-wise.
A vector with the column or the row products.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
x <- matrix( runif(100 * 10), ncol = 10 ) res<-colprods(x) res<-rowprods(x) x<-NULL
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.