correlation(x, y = NULL, method = "pearson",
alternative = "two.sided", exact = NULL,
use = "pairwise.complete.obs",
continuity = FALSE, data = NULL)
## S3 method for class 'correlation':
print(x, ... , toLatex = FALSE)data.frame or a formula defining which
variable to use in the correlation matrix (see details).data.frame to correlate against x. If x
is a formula y is passed to data argumentone.sided) test or bilateral
(two.sided) test. See help(cor) for more details.help(cor) for more details.help(cor) for more details.require(CUFF)
X=rnorm(10)
Y=rnorm(10)
correlation(cbind(X,Y))Run the code above in your browser using DataLab