powered by
correlation(x, y = NULL, method = c("pearson", "spearman", "kendall"), pairwise = FALSE)
x <- seq(0, 10, length=50) y <- x+rnorm(length(x), sd=2) correlation(x, y)
Run the code above in your browser using DataLab