I am trying to find the correlation of the columns of a 1347 by 209974 matrix in R. Everytime I do it (with a simple command cor(matrix)
, I get the message:
*** caught segfault ***
address 0xffffffffd058abf8, cause 'memory not mapped'
Traceback:
1: cor(matrix)
Is it simply because the matrix is too big?
If so, does anyone have any suggestions as to how to find the correlations, other than using two concatenated for loops that find the correlations between each unique pair of rows? (I've tried this and it takes hours.)
I already checked, and the standard deviation of all of the rows is non-zero, so I know that this is not the reason that the correlation is not being computed.
I've had the same problem calling function on a list DATA, with DATA$x <- as.numeric(as.matrix(x)) with x being a function. I just removed the as.numeric and the problem was solved. If it is of any help for anyone…
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With