View source: R/corCouplesToMatrix.R
corCouplesToMatrix | R Documentation |
Transform a 2 column correlation dataframe into a correlation matrix
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.
# 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.