Description Usage Arguments Value Author(s) See Also Examples
Form column variances for numeric arrays
1 |
x |
A numeric array (or a dataframe to convert to a matrix) |
na.rm |
Logical: Remove NA's (not available values) |
dims |
Number of dimensions to sum over [colSums] or leave alone [rowSums]. Only useful when x is a multidimensional array |
unbiased |
Logical: Use (N-1) in the denominator when calculating variance |
SumSquares |
Logical: If TRUE, colVars just returns sums of squares. |
twopass |
Logical: If TRUE, colVars uses the corrected two-pass algorithm of Chan Golub & LeVeque, which is slower but less subject to roundoff error. |
A vector with the variance for every column.
colVars: Originally by Douglas Bates <bates@stat.wisc.edu> as package "MatUtils". Modified, expanded, and renamed by David Brahm <brahm@alum.mit.edu>, with help of course from the R-help gurus.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.