title: How to increase memory in R
body: <p>I am running R 64 bit on windows 7 64 bit. While running my script, I get an error message that cannot allocate a vector of size x (in my case about 200MB). My data.frame has about 200.000 rows, not more. How can it happen that there is not enough storage space to allocate another vector? 
  I know that the operation itself works since the script runs through with a smaller, subsetted file. </p>
  
  <p>I know too that this question has been asked before but none of the answers solved my problem. there are many different answers out-there which one is correct? Is it related to the RAM of the system or of the memory of R?</p>
  
  <p>I increased the memory size manually: </p>
  
  <pre><code>memory.limit()
  # set max memory usage is 2G
  memory.size(max=10000)
  </code></pre>
  
  <p>Then r says that the memory limit is 10.000 </p>
  
  <pre><code>memory.limit()
  [1] 10000 
  </code></pre>
  
  <p>but still there is the same error. it is even the same size of the vector that cannot be allocated.</p>
  
  <p>I cleaned up my computer and set more space free on my drive too. but it doesn´t change anything either. </p>
  
  <p>On what is the memory size dependent and how can I increase it?</p>