📄 apappearance-class.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Class “APappearance” — Specifying the ‘appearance’ Argument of
apriori()</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 APappearance-class {arules}"><tr><td>APappearance-class {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Class “APappearance” — Specifying the ‘appearance’ Argument of
apriori()</h2>
<h3>Description</h3>
<p>
Specifies the restrictions on the associations mined by
<code><a href="apriori.html">apriori</a></code>. Note that appearance is not supported by the
implementation of <code><a href="eclat.html">eclat</a></code>.
</p>
<h3>Objects from the Class</h3>
<p>
If appearance restrictions are used, an appearance object will be
created automatically within the <code><a href="apriori.html">apriori</a></code> function using
the information in the named list of the function's <code>appearance</code>
argument. In this case, the item labels used in the list will be
automatically matched against the items in the used transaction database.
The list can contain the following elements:
</p>
<dl>
<dt><code>default</code>:</dt><dd>one of <code>"both"</code>, <code>"lhs"</code>,
<code>"rhs"</code>, <code>"none"</code> (the default is <code>"both"</code>). This
element specified the default appearance for all items not
explicitly mentioned in the other elements of the list.</dd>
<dt><code>lhs</code>, <code>rhs</code>, <code>both</code>, <code>none</code>,
<code>items</code>:</dt><dd>character vectors giving the labels of the items
which may only appear in the corresponding place of the
rules/itemsets.</dd>
</dl>
<p>
Objects can also be created by calls of the form
<code>new("APappearance", ...)</code>. In this case, item IDs (column
numbers of the transactions incidence matrix) have to be used instead
of labels.
</p>
<h3>Slots</h3>
<dl>
<dt><code>set</code>:</dt><dd>an integer scalar
indicating how many items are specified for each of lhs, rhs,
items, both and none</dd>
<dt><code>items</code>:</dt><dd>an integer
vector of item IDs (column numbers)</dd>
<dt><code>labels</code>:</dt><dd>a character
vector of item labels</dd>
<dt><code>default</code>:</dt><dd>a character scalar
indicating the value for default appearance</dd>
</dl>
<h3>References</h3>
<p>
Christian Borgelt (2004)
<EM>Apriori — Finding Association Rules/Hyperedges with the Apriori
Algorithm</EM>.
<a href="http://fuzzy.cs.uni-magdeburg.de/~borgelt/apriori.html">http://fuzzy.cs.uni-magdeburg.de/~borgelt/apriori.html</a>
</p>
<h3>See Also</h3>
<p>
<code><a href="apriori.html">apriori</a></code>
</p>
<h3>Examples</h3>
<pre>
data("Adult")
## Mine only rules with small or large income in the right-hand-side.
rules <- apriori(Adult, parameter = list(confidence = 0.5),
appearance = list(rhs = c("income=small", "income=large"),
default="lhs"))
</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 + -