Description Usage Arguments Value Examples
View source: R/matrixToCorCouples.R
Transform a correlation matrix into a correlation couples dataframe
| 1 | matrixToCorCouples(matrix, coefName = "Coef.", sortByDescAbs = F)
 | 
| matrix | a dataframe corresponding to a matrix of correlation. | 
| coefName | a string: the name of the coefficient the values of the matrix represent. | 
| sortByDescAbs | a boolean to decide if to sort by descending absolute value of the coefficient. | 
a dataframe corresponding to all correlation couples from the matrix.
| 1 2 3 4 5 6 7 | # calculate a correlation dataframe
data(iris)
corDF<-multiBivariateCorrelation(dataset = iris)
corMatrix<-corCouplesToMatrix(x1_x2_val = corDF[,c('X1','X2',"pearson")])
print(corMatrix)
corCouples<-matrixToCorCouples(matrix = corMatrix,coefName="pearson")
print(corCouples)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.