Column-wise means and variances of a matrix
Column-wise means and variances of a matrix.
colmeansvars(x, std = FALSE, parallel = FALSE)
x |
A matrix with the data. |
std |
A boolean variable specyfying whether you want the variances (FALSE) or the standard deviations (TRUE) of each column. |
parallel |
A boolean value for parallel version. |
This function cacluates the column-wise means and variances (or standard deviations).
A matrix with two rows. The first contains the means and the second contains the variances (or standard deviations).
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
colmeansvars( as.matrix(iris[, 1:4]) )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.