title: How to create a large data frame in R with or without creating a matrix first and then converting it to a data.frame?
body: <p>I need to create a matrix which has <strong>80000 rows and 80000 columns</strong>. But, after reading on Rbloggers, I got to know that, the number of elements in a matrix cannot exceed <strong>2^31 - 1</strong>. My plan to avoid this problem for my particular algorithm is to use a data frame instead of a matrix. Is there a way I can create an empty data frame of dimension 80000 x 80000 without first creating a matrix and then converting it to a data.frame using <strong>as.data.frame</strong> like below?</p>
  
  <pre><code>myMatrix &lt;- matrix(0, ncol = 40, nrow = 90)
  myDataFrame &lt;- as.data.frame(myMatrix)
  </code></pre>