|Column and row-wise products||R Documentation|
Column and row-wise products.
colprods(x, method = "direct") rowprods(x)
A matrix with numbers.
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.
R implementation and documentation: Manos Papadakis <firstname.lastname@example.org>.
colsums, coldiffs, colMedians
x <- matrix( runif(100 * 10), ncol = 10 ) res<-colprods(x) res<-rowprods(x) x<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.