asplain.html
来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· HTML 代码 · 共 57 行
HTML
57 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Methods for Function asPlain in Package ‘tm’</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for asPlain-methods {tm}"><tr><td>asPlain-methods {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Methods for Function asPlain in Package ‘tm’</h2>
<h3>Description</h3>
<p>
Methods for function <code>asPlain</code> in package <span class="pkg">tm</span>.
</p>
<h3>Methods</h3>
<dl>
<dt>object = "NewsgroupDocument"</dt><dd>Converts <code>object</code> to a plain
text document.</dd>
<dt>object = "PlainTextDocument"</dt><dd>Returns <code>object</code>.</dd>
<dt>object = "XMLTextDocument", FUN</dt><dd>Converts <code>object</code> to a
<code>PlainTextDocument</code> by applying <code>FUN</code> on the XML root node
and returns the new object.</dd>
<dt>object = "Reuters21578Document", FUN</dt><dd>Converts <code>object</code> to a
<code>PlainTextDocument</code>.</dd>
<dt>object = "RCV1Document", FUN</dt><dd>Converts <code>object</code> to a
<code>PlainTextDocument</code>.</dd>
<dt>object = "StructuredTextDocument"</dt><dd>Converts <code>object</code> to a
plain text document.</dd>
</dl>
<h3>See Also</h3>
<p>
<code><a href="convertReut21578XMLPlain.html">convertReut21578XMLPlain</a></code>
<code><a href="convertRCV1Plain.html">convertRCV1Plain</a></code>
</p>
<h3>Examples</h3>
<pre>
reut21578 <- system.file("texts", "reut21578", package = "tm")
reut21578TDC <- Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML, language = "en_US", load = TRUE))
reut21578TDC[[1]]
asPlain(reut21578TDC[[1]])
</pre>
<hr><div align="center">[Package <em>tm</em> version 0.3 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?