Column and row wise coefficients of variation | R Documentation |

Column and row wise coefficients of variation.

colcvs(x, ln = FALSE, unbiased = FALSE) rowcvs(x, ln = FALSE, unbiased = FALSE)

`x` |
A numerical matrix with the data. |

`ln` |
If you have log-normally distributed data (or assume you do), then set this to TRUE. |

`unbiased` |
A boolean variable indicating whether the unbiased for shpould be returned. This is applicable in case of small samples. |

The colum-wise coefficients of variation are calculated.

A vector with the coefficient of variation for each column or row.

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.

```
colsums, colVars
```

m <- rnorm(100, 10) x <- matrix(rnorm(100 * 100, m, 1), ncol = 100) a1 <- colcvs(x) a2 <- colcvs(x[1:25, ], unbiased = TRUE) a3 <- colcvs( exp(x), ln = TRUE) 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.