cormat: Correlation matrix

View source: R/cormat.R

cormatR Documentation

Correlation matrix

Description

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.

Usage

cormat(df)

Arguments

df

dataframe for which a correlation matrix is to be calculated

Value

Correlation matrix

Examples

## Not run: cormat(data.frame(matrix(rnorm(100), ncol = 5)))
closeAllConnections()
## End(Not run)

pgrugwiro/variant documentation built on Aug. 2, 2022, 12:08 p.m.