title: Latent Diriclichit Allocation in R
body: <p>How to do topic analysis from text file? i put this code, but I get the error below when i run the last line. Why it is making this error?</p>
  
  <pre><code>library(tm)
  treex &lt;- treex &lt;- readLines(file.choose())
  CorpusObj&lt;- VectorSource(treex) 
  breeze &lt;- LDA(CorpusObj[1:200], control=list(alpha = 0.1), k=20)
  </code></pre>
  
  <p><strong>Error in !all.equal(x$v, as.integer(x$v)) : invalid argument type</strong></p>