📄 list.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: List Representation for Objects Based on “itemMatrix”</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 LIST {arules}"><tr><td>LIST {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>List Representation for Objects Based on “itemMatrix”</h2>
<h3>Description</h3>
<p>
Provides the generic function <code>LIST</code> and the S4 methods to create a list
representation from objects based on <code><a href="itemMatrix-class.html">itemMatrix</a></code> (e.g.,
<code><a href="transactions-class.html">transactions</a></code>, <code><a href="tidLists-class.html">tidLists</a></code>, or
<code><a href="itemsets-class.html">itemsets</a></code>). These methods can be used for the coercion
to a list.
</p>
<h3>Usage</h3>
<pre>
LIST(from, ...)
## S4 method for signature 'itemMatrix':
LIST(from, decode = TRUE)
## S4 method for signature 'transactions':
LIST(from, decode = TRUE)
## S4 method for signature 'tidLists':
LIST(from, decode = TRUE)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>from</code></td>
<td>
the object to be converted into a list.</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
further arguments.</td></tr>
<tr valign="top"><td><code>decode</code></td>
<td>
a logical controlling whether the items/transactions are
decoded from the column numbers internally used by
<code><a href="itemMatrix-class.html">itemMatrix</a></code> to the names stored in
the object <code>from</code>. The default behavior is to decode.
</td></tr>
</table>
<h3>Details</h3>
<p>
Using <code>LIST</code> with <code>decode = TRUE</code> is equivalent to
the standard coercion <code>as(x, "list")</code>.
<code>LIST</code> returns the object <code>from</code> as a list of vectors.
Each vector represents one row of the
<code><a href="itemMatrix-class.html">itemMatrix</a></code> (e.g., items in a
transaction or itemset).
</p>
<h3>Value</h3>
<p>
a list primitive.</p>
<h3>See Also</h3>
<p>
<code><a href="itemCoding.html">decode</a></code>,
<code><a href="itemMatrix-class.html">coerce,itemMatrix,list-method</a></code>,
<code><a href="itemMatrix-class.html">itemMatrix-class</a></code>
</p>
<h3>Examples</h3>
<pre>
data(Adult)
LIST(Adult[1:5])
LIST(Adult[1:5], decode = FALSE)
</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 + -