Description Usage Arguments Details Value Author(s) See Also Examples

Column and row-wise variances and standard deviations of a matrix

1 2 3 |

`x` |
A matrix with the data. |

`suma` |
If you already have the column sums vector supply it, otherwise leave it NULL. |

`std` |
A boolean variable specyfying whether you want the variances (FALSE) or the standard deviations (TRUE) of each column. |

`ina` |
A numerical vector specifying the groups. If you have numerical values, do not put zeros, but 1, 2, 3 and so on. |

We found this in stackoverflow and was created by David Arenburg. We then modified the function to match the sums type formula of the variance, which is faster.

A vector with the colum variances or standard deviations.

Michail Tsagris

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

```
colmeans, colMedians, colrange
```

1 2 3 | ```
x <- matrix( rnorm(100 * 100), ncol = 100 )
a2 <- colVars(x)
groupcolVars( as.matrix(iris[, 1:4]), as.numeric(iris[, 5]) )
``` |

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.