odels</code> package and that your document-term matrix (DTM) is <code>slam</code> coercible. This includes DTMs created through popular text mining packages like <code>tm</code> and <code>quanteda</code>.</p>
</div>
<div id="example" class="section level2">
<h2 class="hasAnchor">
<a href="#example" class="anchor"></a>Example</h2>
<p>For this example, the Associated Press Dataset from topicmodels is used. It contains a DTM created a series of AP articles from 1988.</p>
<div class="sourceCode" id="cb1"><pre 