ljs css r">scores &lt;- predict(m, newdata = dtm, type = <span class="hljs-string">"topics"</span>, 
                  labels = c(<span class="hljs-string">"labela"</span>, <span class="hljs-string">"labelb"</span>, <span class="hljs-string">"labelc"</span>, <span class="hljs-string">"xyz"</span>))
str(scores)
</code></pre>
<pre><code class="hljs"><span class="hljs-string">'data.frame'</span>:   <span class="hljs-number">1767</span> obs. of  <span class="hljs-number">9</span> variables:
 $ doc_id           