correl: Handle Correlations Between quantities Objects
Description
Methods to set or retrieve correlations or covariances between
quantities objects.
Usage
# S3 method for quantities
correl(x, y) <- value
# S3 method for quantities
covar(x, y) <- value
Arguments
x
an object of class quantities.
y
an object of class quantities of the same length as x.
value
a compatible object of class units of length 1 or the
same length as x. For correlations, this means a unitless vector (a
numeric vector is also accepted in this case). For covariances, this means
the same magnitude as x*y.