Column and row-wise products | R Documentation |

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>.

```
colsums, coldiffs, colMedians
```

```
x <- matrix( runif(100 * 10), ncol = 10 )
res<-colprods(x)
res<-rowprods(x)
x<-NULL
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.