⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 termdocmatrix.html

📁 R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面就是一个R实现的文本挖掘(text mining简称tm)的包.里面有代码和样本数据.
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Term-document matrix</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 TermDocMatrix {tm}"><tr><td>TermDocMatrix {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Term-document matrix</h2>


<h3>Description</h3>

<p>
Constructs a term-document matrix.
</p>


<h3>Usage</h3>

<pre>
TermDocMatrix(object, control = list())
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
a text document collection</td></tr>
<tr valign="top"><td><code>control</code></td>
<td>
a list of control options. The option <code>weighting</code>
must be a weighting function capable of handling a
<code>dgCMatrix</code>. It defaults to <code>weightTf</code> for term frequency
weighting. All other options are delegated internally to a
<code><a href="termFreq.html">termFreq</a></code> call.</td></tr>
</table>

<h3>Value</h3>

<p>
An S4 object of class <code>TermDocMatrix</code> containing a sparse term-document
matrix. The following slots contain useful information:
</p>
<table summary="R argblock">
<tr valign="top"><td><code>Data</code></td>
<td>
The sparse <code>Matrix</code></td></tr>
<tr valign="top"><td><code>Weighting</code></td>
<td>
The weighting mode applied to the term-document matrix</td></tr>
</table>

<h3>Author(s)</h3>

<p>
Ingo Feinerer
</p>


<h3>See Also</h3>

<p>
The documentation to <code><a href="termFreq.html">termFreq</a></code> gives an extensive list of
possible options.
</p>
<p>
Available weighting functions shipped with this
package are <code><a href="weightTf.html">weightTf</a></code>, <code><a href="weightTfIdf.html">weightTfIdf</a></code>,
<code><a href="weightBin.html">weightBin</a></code> and <code><a href="weightLogical.html">weightLogical</a></code>.
</p>


<h3>Examples</h3>

<pre>
data("crude")
(tdm &lt;- TermDocMatrix(crude, control = list(weighting = weightTfIdf, stopwords = TRUE)))
</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 + -