Cor | R Documentation |
‘Cor’ computes the correlation of ‘x’ and ‘y’ if these are vectors. If ‘x’ and ‘y’ are matrices then the correlations between the columns of ‘x’ and the columns of ‘y’ are computed. Missing values are handled by casewise deletion. If there are no complete cases, that gives an error.
Cor(x, y = NULL, method = "pearson")
x: |
a numeric vector, matrix or data frame. y: ‘NULL’ (default) or a vector, matrix or data frame with compatible dimensions to ‘x’. The default is equivalent to ‘y = x’ (but more efficient). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.