cormat | R Documentation |
The cormat() function is used to calculate the correlation matrix of any given numerical data frame. It is specifically designed to handle large dataset by making use of parallel computing. It takes in as input a numerical data frame of n columns and any number of rows and it returns a n x n-1 matrix of correlation coefficients. n-1 is because the correlation coefficients of any given variable with itself is removed in the output.
cormat(df)
df |
dataframe for which a correlation matrix is to be calculated |
Correlation matrix
## Not run: cormat(data.frame(matrix(rnorm(100), ncol = 5))) closeAllConnections() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.