title: DocumentTermMatrix in tm package does not return all words
body: <p>I'm creating a document-term matrix with the tm-package in R, but some of the words in my corpus get lost in the process somewhere.</p>
  
  <p>I will explain with an example. Let's say I have this small corpus</p>
  
  <pre><code>library(tm)
  crps &lt;- " more hours to my next class bout to go home and go night night"
  crps &lt;- VCorpus(VectorSource(crps))
  </code></pre>
  
  <p>When I use <code>DocumentTermMatrix()</code> from the tm-package, it will return these results:</p>
  
  <pre><code>dm &lt;- DocumentTermMatrix(crps)
  dm_matrix &lt;- as.matrix(dm)
  dm_matrix
  # Terms
  # Docs and bout class home hours more next night
  # 1   1    1     1    1     1    1    1     2
  </code></pre>
  
  <p>However, what I want (and expected) is:</p>
  
  <pre><code># Docs and bout class home hours more next night my  go to
  #  1   1    1     1    1     1    1    1     2   1   2  1
  </code></pre>
  
  <p>Why does <code>DocumentTermMatrix()</code> skip the words "my","go"and "to"? Is there a way to control and fix this function?</p>