corCouplesToMatrix: Couples to matrix

Description Usage Arguments Value Examples

View source: R/corCouplesToMatrix.R

Description

Transform a 2 column correlation dataframe into a correlation matrix

Usage

1
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

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)

linkspotter documentation built on July 23, 2020, 5:08 p.m.