title: R - How do I stop a data frame printing itself to the console
body: <p>I'm very new to R and am working on a text mining project.  I have all the analysis working however when I convert the Term-Document Matrix back to a data frame it fills the console with the content..  </p>
  
  <p>The code I'm using for this is:</p>
  
  <pre><code>TDM.frame &lt;- data.frame(inspect(Words.TDM))
  </code></pre>
  
  <p>The frame has 9k objects in it so I won't paste that here too but you can imagine what the console looks like when it dumps the whole content out ^^</p>
  
  <p>I've tried using invisible() but that doesn't change anything.  I hope someone can tell me what I'm doing wrong, or offer a solution! </p>
  
  <p>Thanks!</p>