data("diabetes")
x <- diabetes$x
y <- diabetes$y
## Spearman correlation
maxCorGrid(x, y, method = "spearman")
maxCorGrid(x, y, method = "spearman", consistent = TRUE)
## Pearson correlation
maxCorGrid(x, y, method = "pearson")
Run the code above in your browser using DataLab