I have problems in using the
I just have two matrices (only numerical values, and the same number of row and columns) and I want to have the correlation number and the corresponding p-value.
When I use
cor(matrix1, matrix2) I get the correlation coefficients for all the cells.
I just want a single number as result of cor.
In additon when I do
cor.test(matrix1, matrix2) I get the following error
Error in cor.test.default(matrix1, matrix2) : 'x' must be a numeric vector
How can I get p-values for matrices?
You find the simple tables I want to correlate here: