Skip to contents

Given a square correlation matrix, converts it to a long data.frame, with three columns.

Usage

cor_matrix_2_long_df(in_matrix)

Arguments

in_matrix

the correlation matrix

Value

data.frame

Details

The data.frame contains three columns:

  • s1: the first entry of comparison

  • s2: the second entry of comparison

  • cor: the correlation value