></span><span class="op">(</span><span class="va">raw</span><span class="op">)</span></code></pre></div>
<p>Both <code><a href="../reference/corpus_frame.html">as_corpus_frame()</a></code> and <code><a href="../reference/corpus_text.html">as_corpus_text()</a></code> are generic; they work on character vectors, data frames, <em>tm</em> <code>Corpus</code> objects, and <em>quanteda</em> <code>corpus</code> objects. Whenever you call a <em>corpus</em> function expecting text, that function calls <code><a href=