View source: R/covariancecorrelation.R
Correlation | R Documentation |
Correlation
Computes the correlation between two vectors, using weights if provided.
Correlation(x, y, weights = NULL, correlation = TRUE)
x |
A numeric vector. |
y |
A numeric vector. |
weights |
A numeric vector containing the value of the weight for each
row of |
correlation |
If |
x <- 1:10
y <- c(2, 2:10)
w <- rep(1, 10)
Correlation(x, y, w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.