Description Usage Arguments Value Examples
View source: R/corCouplesToMatrix.R
Transform a 2 column correlation dataframe into a correlation matrix
1 | corCouplesToMatrix(x1_x2_val)
|
x1_x2_val |
a specific dataframe containing correlations values resulting from the function multiBivariateCorrelation() and containing only one coefficient type. |
a dataframe corresponding to a correlation matrix.
1 2 3 4 5 6 7 | # calculate a correlation dataframe
data(iris)
corDF<-multiBivariateCorrelation(dataset = iris, corMethods = "MaxNMI")
corMatrix<-corCouplesToMatrix(x1_x2_val = corDF[,c('X1','X2',"MaxNMI")])
print(corMatrix)
corCouples<-matrixToCorCouples(corMatrix,coefName="pearson")
print(corCouples)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.