Internal use. This function gets the upper part of the matrix after calculating the correlation coefficients between all pairs of elements cormat : matrix of the correlation coefficients pmat : matrix of the correlation p-values
flattenCorrMatrix(cormat, pmat)
Returns
A data.frame with all pairwise correlations of the input elements and their respective p-values