weightfunction.html
来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· HTML 代码 · 共 62 行
HTML
62 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Weighting Function Constructor</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 WeightFunction {tm}"><tr><td>WeightFunction {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Weighting Function Constructor</h2>
<h3>Description</h3>
<p>
Constructs a weighting function for term-document matrices.
</p>
<h3>Usage</h3>
<pre>
WeightFunction(object, name)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
a function which takes a <code>dgCMatrix</code> term-document
matrix with term frequencies as input, weights the elements, and
returns the weighted matrix.</td></tr>
<tr valign="top"><td><code>name</code></td>
<td>
a character naming the weighting function</td></tr>
</table>
<h3>Value</h3>
<p>
An S4 object of class <code>WeightFunction</code> which extends the class
<code>function</code> representing a weighting function.</p>
<h3>Author(s)</h3>
<p>
Ingo Feinerer
</p>
<h3>Examples</h3>
<pre>
weightCutBin <- WeightFunction(function(m, cutoff) as(m > cutoff, "dgCMatrix"), "binary with cutoff")
</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 + -
显示快捷键?