I have two gene correlation matrices A and B,
seed(1) X <- data.frame(matrix(rnorm(2000), nrow=10)) Y <- data.frame(matrix(rnorm(2000), nrow=10))
I would like to find the correlation between each row of A and B in the following way. For example there should be a correlation value for row 1 of X and row 1 of Y.
Similarly applying for all rows there will be in total ten values ( because there are ten rows)