Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

caught segfault, memory not mapped error

Tags:

r

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.

like image 836
user2588829 Avatar asked Jul 29 '13 20:07

user2588829


1 Answers

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…

like image 89
Vincent Moens Avatar answered Nov 19 '22 03:11

Vincent Moens