| LIST {arules} | R Documentation |
Provides the generic function LIST and the S4 method to create
a list representation from objects based on
itemMatrix (e.g.,
transactions,
tidList, or
itemsets).
These methods are also used for the coercion to list.
LIST(from, ...) ## S4 method for signature 'itemMatrix': LIST(from, decode = TRUE) ## S4 method for signature 'transactions': LIST(from, decode = TRUE) ## S4 method for signature 'tidList': LIST(from, decode = TRUE)
from |
the object to be converted into a list. |
... |
further arguments are passed on. |
decode |
a logical controlling whether the items/transactions are
decoded from the column numbers internally used by
itemMatrix to the names stored in
the object from. The default behavior is to decode.
|
LIST returns the object from as a list of vectors.
Each vector represents one row of the
itemMatrix (e.g., items in a
transaction or itemset).
a "list" primitive.
Michael Hahsler
data(Adult_transactions) LIST(Adult_transactions[1:5]) LIST(Adult_transactions[1:5], decode = FALSE)