appendelem.html
来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· HTML 代码 · 共 61 行
HTML
61 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Methods for Function appendElem 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 appendElem-methods {tm}"><tr><td>appendElem-methods {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Methods for Function appendElem in Package ‘tm’</h2>
<h3>Description</h3>
<p>
Methods for function <code>appendElem</code> in package <span class="pkg">tm</span>.
</p>
<h3>Methods</h3>
<dl>
<dt>object = "Corpus", data = "TextDocument", meta = NULL</dt><dd>Returns a text
document collection where the <code>data</code> text document is added to
the data slot of the <code>object</code> text document
collection. Optionally meta data (<code>DMetaData</code>) can be added with
<code>meta</code> to the document collection.</dd>
<dt>object = "TextRepository", data = "Corpus", meta = NULL</dt><dd>Returns a text
repository where the <code>data</code> text document collection is added to
the data slot of the <code>object</code> text repository. Optionally meta
data can be added with <code>meta</code> to the repository.</dd>
</dl>
<h3>See Also</h3>
<p>
<code><a href="TextDocCol-class.html">DMetaData</a></code>
<code><a href="TextRepository-class.html">RepoMetaData</a></code>
</p>
<h3>Examples</h3>
<pre>
data("acq")
data("crude")
summary(crude)
tdcl <- appendMeta(crude, dmeta = list("number" = 1:20, "letter" = rep(letters[1:10],2)))
summary(tdcl)
DMetaData(tdcl)
tdcl <- appendElem(tdcl, acq[[1]], c(21, letters[1]))
summary(tdcl)
DMetaData(tdcl)
</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 + -
显示快捷键?