Computes Pearson's correlation between pairs of columns. If one matrix is provided, the output is the pairwise correlations between its columns. If two matrices are provided, the output is the pairwise correlations between their columns.
correlation(matrix1, matrix2 = NULL)Returns a correlation matrix.
The first input matrix.
The second input matrix (optional).