Calculate correlations and variances, including when
x
or y
is an rvec.
Arguments
- x
A numeric vector, matrix, data frame, or
rvec()
.- y
NULL (default) or a vector, matrix, data frame, or rvec with compatible dimensions to x.
- na.rm
Whether
NA
s removed before calculations.- use
Calculation method. See
stats::var()
.
Details
To enable different behavior for rvecs and for ordinary vectors,
the base R function stats::var()
is turned into a generic,
with stats::var()
as the default.
For details on the calculations, see the documentation
for stats::var()
.