Calculate a correlation matrix from a data table
1 | get_cormat(data, xcol, ycol, valuecol, method = "pearson", pval = F)
|
data: |
a data table |
xcol: |
the column name to be taken as x column |
ycol: |
the column name to be taken as y column |
valuecol: |
the column name to be taken as valuecol |
method: |
pearson or spearman, type argumetn from 'rcorr' |
pval: |
return p values for the correlations? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.