duplicated.html

来自「本程序是基于linux系统下c++代码」· HTML 代码 · 共 81 行

HTML
81
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Find Duplicated Elements</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 duplicated {arules}"><tr><td>duplicated {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Find Duplicated Elements</h2>


<h3>Description</h3>

<p>
Provides the generic function <code>duplicated</code>  and the S4 methods for
<code>itemMatrix</code> and associations.  <code>duplicated</code> finds duplicated
elements in an <code>itemMatrix</code>.  It returns a logical vector indicating
which elements are duplicates.
</p>
<p>
Note that <code>duplicated</code> can also be used to find transactions with
identical items and identical rules and itemsets stored in
<code>rules</code> and <code>itemsets</code>.
</p>


<h3>Usage</h3>

<pre>
duplicated(x, incomparables = FALSE, ...)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
an object of class <code>itemMatrix</code> or associations.</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
further arguments (currently unused). </td></tr>
<tr valign="top"><td><code>incomparables</code></td>
<td>
argument currently unused.</td></tr>
</table>

<h3>Value</h3>

<p>
A logical vector indicating duplicated elements.</p>

<h3>See Also</h3>

<p>
<code><a href="unique.html">unique</a></code>,
<code><a href="rules-class.html">rules-class</a></code>,
<code><a href="itemsets-class.html">itemsets-class</a></code>,
<code><a href="itemMatrix-class.html">itemMatrix-class</a></code>
</p>


<h3>Examples</h3>

<pre>
data("Adult")

r1 &lt;- apriori(Adult[1:1000], parameter = list(support = 0.5))
r2 &lt;- apriori(Adult[1001:2000], parameter = list(support = 0.5))

## Note this creates a collection of rules from two sets of rules
r_comb &lt;- c(r1, r2)
duplicated(r_comb)

</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 + -
显示快捷键?