title: caught segfault, memory not mapped error
body: <p>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 <code>cor(matrix)</code>, I get the message:</p>
  
  <pre><code> *** caught segfault ***
  address 0xffffffffd058abf8, cause 'memory not mapped'
  
  Traceback:
   1: cor(matrix)
  </code></pre>
  
  <p>Is it simply because the matrix is too big?</p>
  
  <p>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.)</p>
  
  <p>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.</p>