Usage
colVars(x, na.rm = FALSE, dims = 1, unbiased = TRUE, SumSquares = FALSE, twopass = TRUE)
rowVars(x, na.rm = FALSE, dims = 1, unbiased = TRUE, SumSquares = FALSE, twopass = TRUE)
Arguments
x
an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame.
na.rm
logical. Should missing values (including NaN) be omitted from the calculations?
dims
integer: Which dimensions are regarded as ?rows? or ?columns? to sum over. For row*, the sum or mean is over dimensions dims+1, ...; for col* it is over dimensions 1:dims.
unbiased
logical. Should the estimator of the variance be unbiaised, using `(N - 1)` as a denominator?
SumSquares
logical. Should the function return only the sum of squares?
twopass
logical. `twopass = TRUE` is needed for numerical accuracy if mu >> sigma.