correl | R Documentation |
quantities
ObjectsMethods to set or retrieve correlations or covariances between
quantities
objects.
## S3 replacement method for class 'quantities'
correl(x, y) <- value
## S3 replacement method for class 'quantities'
covar(x, y) <- value
x |
an object of class |
y |
an object of class |
value |
a compatible object of class |
correl
.
x <- set_quantities(1:10, m/s, 0.1)
y <- set_quantities(10:1, km/h, 0.2)
correl(x, y) <- 0.1 # accepted
correl(x, y) <- set_units(0.1) # recommended
correl(x, y)
covar(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.