📄 coverage.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Calculate coverage for rules</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 coverage {arules}"><tr><td>coverage {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Calculate coverage for rules</h2>
<h3>Description</h3>
<p>
Provides the generic function and the needed S4 method to
calculate the coverage (support of the left-hand-side) of rules.
</p>
<h3>Usage</h3>
<pre>
coverage(x, transactions = NULL)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
the set of rules. </td></tr>
<tr valign="top"><td><code>transactions</code></td>
<td>
the data set used to generate 'x'. Only needed if
the quality slot of 'x' does not contain support and confidence. </td></tr>
</table>
<h3>Details</h3>
<p>
Coverage is calculated from the rules quality measures
(support and confidence) stored in the quality slot or, if these
values are not present, as the
support of the LHS.
</p>
<h3>Value</h3>
<p>
A numeric vector of the same length as <code>x</code> containing
the coverage values for the sets in <code>x</code>.</p>
<h3>See Also</h3>
<p>
<code><a href="rules-class.html">rules-class</a></code>
</p>
<h3>Examples</h3>
<pre>
data("Income")
## find and some rules (we only use 5 rules here) and calculate coverage
rules <- apriori(Income)[1:5]
quality(rules) <- cbind(quality(rules), coverage = coverage(rules))
inspect(rules)
</pre>
<hr><div align="center">[Package <em>arules</em> version 0.6-6 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -