📄 meta.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Methods for Function meta 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 meta-methods {tm}"><tr><td>meta-methods {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Methods for Function meta in Package ‘tm’</h2>
<h3>Description</h3>
<p>
Methods for function <code>meta</code> in package <span class="pkg">tm</span>.
</p>
<h3>Methods</h3>
<dl>
<dt>object = "TextDocument"</dt><dd>If no <code>tag</code> is given, this
method pretty prints all <code>object</code>'s meta data. If <code>tag</code>
is provided its value in the meta data is returned.</dd>
<dt>object = "Corpus"</dt><dd>If no <code>tag</code> is given, this
method investigates the <code>type</code> argument. <code>type</code> must be
either <code>indexed</code> (default) or <code>corpus</code>. Former is a
shortcut for accessing document level meta data
(<code><a href="TextDocCol-class.html">DMetaData</a></code>) stored at the collection level (because
it forms an own entity, or for performance reasons, i.e., a form
of indexing, hence the name indexed), the latter a shortcut for
collection (corpus) specific meta data
(<code><a href="TextDocCol-class.html">CMetaData</a></code>). Depending whether a tag is set or not,
all or only the meta data identified by the tag is displayed or
modified.</dd>
<dt>object = "TextRepository"</dt><dd>If no <code>tag</code> is given, this
method pretty prints all <code>object</code>'s meta data. If <code>tag</code>
is provided its value in the meta data is returned.</dd>
</dl>
<h3>Examples</h3>
<pre>
data("crude")
meta(crude[[1]])
meta(crude[[1]], tag = "Topics")
meta(crude[[1]], tag = "Comment") <- "A short comment."
meta(crude[[1]])
meta(crude)
meta(crude, type = "corpus")
meta(crude, "labels") <- 21:40
meta(crude)
</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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -