s="hljs css r"><span class="hljs-keyword">library</span>(topicmodels)
m &lt;- LDA(dtm_clean, k = <span class="hljs-number">4</span>, method = <span class="hljs-string">"Gibbs"</span>, 
         control = list(nstart = <span class="hljs-number">5</span>, burnin = <span class="hljs-number">2000</span>, best = <span class="hljs-literal">TRUE</span>, seed = <span class="hljs-number">1</span>:<span class="hljs-number">5</span>))
</code></pre>
<h4><a class="anchor" aria-hidden="true" name="predict-new-documents">