R/util.R
pair_cor.Rde.g. row 1 of mat1 will be correlated with row 1 of mat2; row 2 of mat 1 with row 2 of mat2, etc.
pair_cor(mat1, mat2, margin = 1)a numeric vector with paired correlation values
The matrices must have the same number of rows or columns