removesparseterms.html

来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· HTML 代码 · 共 43 行

HTML
43
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Methods for Function removeSparseTerms in Package &lsquo;tm&rsquo;</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 removeSparseTerms-methods {tm}"><tr><td>removeSparseTerms-methods {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Methods for Function removeSparseTerms in Package &lsquo;tm&rsquo;</h2>


<h3>Description</h3>

<p>
Methods for function <code>removeSparseTerms</code> in package <span class="pkg">tm</span>.
</p>


<h3>Methods</h3>

<dl>
<dt>object = "TermDocMatrix", sparse = "numeric"</dt><dd>Return
<code>object</code> where those columns (i.e., terms) from
<code>Data(object)</code> are removed which have at least a <code>sparse</code>
percentage of sparse (i.e., terms occurring 0 times in a document)
elements. I.e., the resulting matrix contains only columns with a
sparse factor of less than <code>sparse</code>.
</dd>
</dl>

<h3>Examples</h3>

<pre>
data("crude")
tdm &lt;- TermDocMatrix(crude)
removeSparseTerms(tdm, 0.2)
</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 + -
显示快捷键?