combine.html
来自「本程序是基于linux系统下c++代码」· HTML 代码 · 共 98 行
HTML
98 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Combining Objects</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 combine {arules}"><tr><td>combine {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Combining Objects</h2>
<h3>Description</h3>
<p>
Provides the S4 methods to combine several objects based on
<code><a href="itemMatrix-class.html">itemMatrix</a></code> into a single object.
</p>
<p>
Note, use <code><a href="sets.html">union</a></code> rather than <code>c</code> to combine several mined
<code><a href="itemsets-class.html">itemsets</a></code> (or <code><a href="rules-class.html">rules</a></code>) into a single
set.
</p>
<h3>Usage</h3>
<pre>
## S4 method for signature 'itemMatrix':
c(x, ..., recursive = FALSE)
## S4 method for signature 'transactions':
c(x, ..., recursive = FALSE)
## S4 method for signature 'rules':
c(x, ..., recursive = FALSE)
## S4 method for signature 'itemsets':
c(x, ..., recursive = FALSE)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
first object.</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
further objects of the same class as <code>x</code> to be combined.</td></tr>
<tr valign="top"><td><code>recursive</code></td>
<td>
a logical. If <code>recursive=TRUE</code>,
the function recursively
descends through lists combining all their elements into a
vector.</td></tr>
</table>
<h3>Value</h3>
<p>
An object of the same class as <code>x</code>.</p>
<h3>See Also</h3>
<p>
<code><a href="itemMatrix-class.html">itemMatrix-class</a></code>,
<code><a href="transactions-class.html">transactions-class</a></code>,
<code><a href="rules-class.html">rules-class</a></code>,
<code><a href="itemsets-class.html">itemsets-class</a></code>
</p>
<h3>Examples</h3>
<pre>
data("Adult")
## combine transactions
a1 <- Adult[1:10]
a2 <- Adult[101:110]
aComb <- c(a1, a2)
summary(aComb)
## combine rules
r1 <- apriori(Adult[1:1000])
r2 <- apriori(Adult[1001:2000])
rComb <- unique(c(r1, r2))
rComb
</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 + -
显示快捷键?