cor.matrix | R Documentation |
This function can be used to produce a correlation matrix which lower triangle is correlation coefficent and upper triangle is p values.
cor.matrix(dat,method='pearson')
dat |
an dataset with continuous variables.
method |
The method used to calcuate cor test. Also the cormat
function of pigrmess package
(out <- cor.matrix(iris[,-5]))
data2excel(dat = out, filename = 'correlation res.xlsx', sheetname = 'Sheet1', create = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.