unique.html
来自「本程序是基于linux系统下c++代码」· HTML 代码 · 共 79 行
HTML
79 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Remove Duplicated Elements from a Collection</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 unique {arules}"><tr><td>unique {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Remove Duplicated Elements from a Collection</h2>
<h3>Description</h3>
<p>
Provides the generic function <code>unique</code> and the S4 methods for
<code>itemMatrix</code>. <code>unique</code> uses <code><a href="duplicated.html">duplicated</a></code> to return an
<code>itemMatrix</code> with the duplicate elements removed.
</p>
<p>
Note that <code>unique</code> can also be used on collections of
<code>associations</code>.
</p>
<h3>Usage</h3>
<pre>
unique(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>
currently unused.</td></tr>
</table>
<h3>Value</h3>
<p>
An object of the same class as <code>x</code> with duplicated elements removed.</p>
<h3>See Also</h3>
<p>
<code><a href="duplicated.html">duplicated</a></code>,
<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")
r1 <- apriori(Adult[1:1000], parameter = list(support = 0.5))
r2 <- apriori(Adult[1001:2000], parameter = list(support = 0.5))
## Note that this produces a collection of rules from two sets
r_comb <- c(r1, r2)
r_comb <- unique(r_comb)
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 + -
显示快捷键?