is.superset.html
来自「本程序是基于linux系统下c++代码」· HTML 代码 · 共 81 行
HTML
81 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Find Super and Subsets</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 is.superset {arules}"><tr><td>is.superset {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Find Super and Subsets</h2>
<h3>Description</h3>
<p>
Provides the generic functions and the S4 methods <code>is.subset</code> and
<code>is.superset</code> for finding super or subsets in associations and
itemMatrix objects.
</p>
<h3>Usage</h3>
<pre>
is.subset(x, y = NULL, proper = FALSE)
is.superset(x, y = NULL, proper = FALSE)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x, y</code></td>
<td>
associations or itemMatrix objects. If <code>y = NULL</code>,
the super or subset structure within set <code>x</code> is calculated.</td></tr>
<tr valign="top"><td><code>proper</code></td>
<td>
a logical indicating if all or just proper super or subsets.</td></tr>
</table>
<h3>Details</h3>
<p>
looks for each element in <code>x</code> which elements in <code>y</code> are supersets or
subsets. Note that the method can be very slow and memory intensive if
<code>x</code> and/or <code>y</code> contain many elements.
</p>
<h3>Value</h3>
<p>
returns a logical matrix with <code>length(x)</code> rows and <code>length(y)</code>
columns. Each logical row vector represents which elements in <code>y</code> are
supersets (subsets) of the corresponding element in <code>x</code>. If either
<code>x</code> or <code>y</code> have lenght zero, <code>NULL</code> is returned instead of a
matrix.</p>
<h3>See Also</h3>
<p>
<code><a href="associations-class.html">associations-class</a></code>,
<code><a href="itemMatrix-class.html">itemMatrix-class</a></code>
</p>
<h3>Examples</h3>
<pre>
data("Adult")
set <- eclat(Adult, parameter = list(supp = 0.8))
### find the supersets of each itemset in set
is.superset(set, set)
</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 + =
减小字号Ctrl + -
显示快捷键?