title: Term Document matrix or Document Term matrix which one is better?
body: <p>I am working on counting the frequency of unique words in a text document in R 3.2.2. I have collapsed so many articles into one single text document now and framed into corpus using <code>tm</code> package.</p>
  
  <pre><code>desc&lt;-paste(column_input, collapse=" ")
  desrc &lt;- VectorSource(desc)
  decorp&lt;-Corpus(desrc)
  #dedtm &lt;- DocumentTermMatrix(decorp)
  #dedtm &lt;- TermDocumentMatrix(decorp)
  </code></pre>
  
  <p>There are 12000 odd terms in that one text doc. To proceed forward with matrix operations, I am not quite sure which is better method. Term Document matrix or Document Term matrix  ?</p>
  
  <p>I hope that depends upon context. Is it better to use Term Document matrix rather than Document Term matrix in case of fewer documents with more terms. I just wanted to understand the logic behind this. So, I hope there is no need for any reproducible example. Any suggestions would be greatly appreciated.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Bala</p>