:   1882     merci    2
<span class="hljs-attribute">5</span>:   1882    appart    1
<span class="hljs-attribute">6</span>:   1882  quartier    2
</code></pre>
<pre><code class="hljs css r"><span class="hljs-comment">## Create a document/term/matrix for building a topic model</span>
dtm &lt;- document_term_matrix(x = dtf)
<span class="hljs-comment">## Remove words which do not occur that much</span>
dtm_clean &lt;- dtm_remove_lowfreq(dtm, minfreq = <span class="hljs-number">5</span>)
head(dtm_colsums(dtm_cl