LIST
and the S4 methods to create a list
representation from objects based on itemMatrix
(e.g.,
transactions
, tidLists
, or
itemsets
). These methods can be used for the coercion
to a list.LIST(from, ...)## S3 method for class 'itemMatrix':
LIST(from, decode = TRUE)
## S3 method for class 'transactions':
LIST(from, decode = TRUE)
## S3 method for class 'tidLists':
LIST(from, decode = TRUE)
itemMatrix
to the names stored in
the object from
. The default behavior is to decLIST
with decode = TRUE
is equivalent to
the standard coercion as(x, "list")
.
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).decode
,
coerce,itemMatrix,list-method
,
itemMatrix-class
data(Adult)
LIST(Adult[1:5])
LIST(Adult[1:5], decode = FALSE)
Run the code above in your browser using DataLab