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 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.