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

📄 itemsets-class.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Class &ldquo;itemsets&rdquo; &mdash; A Set of Itemsets</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 itemsets-class {arules}"><tr><td>itemsets-class {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Class &ldquo;itemsets&rdquo; &mdash; A Set of Itemsets</h2>


<h3>Description</h3>

<p>
The <code>itemsets</code> class represents a set of itemsets and the associated
quality measures. 
</p>
<p>
Note that the class can also represent a multiset of itemsets with duplicated
elements. Duplicated elements can be removed with <code><a href="unique.html">unique</a></code>.
</p>


<h3>Objects from the Class</h3>

<p>
Objects are the result of calling the functions <code><a href="apriori.html">apriori</a></code>
(e.g., with <code>target="frequent itemsets"</code> in the parameter list) 
or <code><a href="eclat.html">eclat</a></code>.
Objects can also be created by calls of the form
<code>new("itemsets", ...)</code>.
</p>


<h3>Slots</h3>

<dl>
<dt><code>items</code>:</dt><dd>object of class
<code><a href="itemMatrix-class.html">itemMatrix</a></code> containing the 
items in the set of itemsets</dd>
<dt><code>quality</code>:</dt><dd>a data.frame
containing the quality measures for the itemsets</dd>
<dt><code>tidLists</code>:</dt><dd>object of class
<code><a href="tidLists-class.html">tidLists</a></code> containing the IDs of the
transactions which support each itemset.  The slot contains
<code>NULL</code> if no transactions ID list is available (transactions
ID lists are only available for <code><a href="eclat.html">eclat</a></code>).
</dd>
</dl>

<h3>Extends</h3>

<p>
Class <code><a href="associations-class.html">associations</a></code>, directly.
</p>


<h3>Methods</h3>

<dl>
<dt>coerce</dt><dd><code>signature(from = "itemsets", to =
        "data.frame")</code>;
represent the itemsets in readable form</dd>
<dt>items</dt><dd><code>signature(x = "itemsets")</code>;
returns the <code><a href="itemMatrix-class.html">itemMatrix</a></code>
representing the set of itemsets</dd>
<dt>items&lt;-</dt><dd><code>signature(x = "itemsets")</code>;
replaces the <code><a href="itemMatrix-class.html">itemMatrix</a></code>
representing the set of itemsets</dd>
<dt>itemInfo</dt><dd><code>signature(object = "itemsets")</code>; 
returns the whole item information data frame including item
labels</dd>
<dt>labels</dt><dd><code>signature(object = "itemsets")</code>;
returns labels for the itemsets as a
character vector. The labels have te following format: 
"{item1, item2,..., itemn}"</dd>
<dt>itemLabels</dt><dd><code>signature(object = "itemsets")</code>;
returns the item labels used to encode the itemsets as
a character vector. The index for each lable is the column
index of the item in the binary matrix.</dd>
<dt>summary</dt><dd><code>signature(object = "itemsets")</code></dd>
<dt>tidLists</dt><dd><code>signature(object = "itemsets")</code>;
returns the transaction ID list</dd>
</dl>

<h3>See Also</h3>

<p>
<code><a href="Xtrct-methods.html">[-methods</a></code>,
<code><a href="apriori.html">apriori</a></code>,
<code><a href="combine.html">c</a></code>,
<code><a href="duplicated.html">duplicated</a></code>,
<code><a href="eclat.html">eclat</a></code>,
<code><a href="inspect.html">inspect</a></code>,
<code><a href="is.maximal.html">is.maximal</a></code>,
<code><a href="length.html">length</a></code>,
<code><a href="match.html">match</a></code>,
<code><a href="sets.html">sets</a></code>,
<code><a href="size.html">size</a></code>,
<code><a href="subset.html">subset</a></code>,
<code><a href="associations-class.html">associations-class</a></code>, 
<code><a href="tidLists-class.html">tidLists-class</a></code>
</p>


<h3>Examples</h3>

<pre>
data("Adult")

## Mine frequent itemsets with Eclat.
fsets &lt;- eclat(Adult, parameter = list(supp = 0.5))

## Display the 5 itemsets with the highest support.
fsets.top5 &lt;- SORT(fsets)[1:5]
inspect(fsets.top5)

## Get the itemsets as a list
as(items(fsets.top5), "list")

## Get the itemsets as a binary matrix
as(items(fsets.top5), "matrix")

## Get the itemsets as a sparse matrix, a ngCMatrix from package Matrix.
## Warning: for efficiency reasons, the ngCMatrix you get is transposed 
as(items(fsets.top5), "ngCMatrix")

</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 + -