corCouplesToMatrix {linkspotter}R Documentation

Couples to matrix

Description

Transform a 2 column correlation dataframe into a correlation matrix

Usage

corCouplesToMatrix(x1_x2_val)

Arguments

x1_x2_val

a specific dataframe containing correlations values resulting from the function multiBivariateCorrelation() and containing only one coefficient type.

Value

a dataframe corresponding to a correlation matrix.

Examples

# 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)


[Package linkspotter version 1.3.0 Index]