corCouplesToMatrix: Couples to matrix

View source: R/corCouplesToMatrix.R

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


sambaala/linkspotter documentation built on Oct. 18, 2023, 9:45 p.m.