Column-wise means and variances {Rfast2} | R Documentation |
Column-wise means and variances of a matrix
Description
Column-wise means and variances of a matrix.
Usage
colmeansvars(x, std = FALSE, parallel = FALSE)
Arguments
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. |
Details
This function cacluates the column-wise means and variances (or standard deviations).
Value
A matrix with two rows. The first contains the means and the second contains the variances (or standard deviations).
Author(s)
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Manos Papadakis papadakm95@gmail.com.
See Also
Examples
colmeansvars( as.matrix(iris[, 1:4]) )
[Package Rfast2 version 0.1.5.2 Index]