- coerce
signature(from = "matrix", to = "itemMatrix")
;
expects from
to be a binary matrix only containing 0s and 1s.
- coerce
signature(from = "itemMatrix", to = "matrix")
; coerces
to a dense 0-1 matrix of storage.mode
"integer"
instead of
"double"
to save memory.
- coerce
signature(from = "list", to = "itemMatrix")
;
from
is a list of vectors. Each vector contains one
set/transaction/….
- coerce
signature(from = "itemMatrix", to = "list")
; see also
the methods for LIST
.
- coerce
signature(from = "itemMatrix", to = "ngCMatrix")
;
access the sparse matrix representation. Note, the ngCMatrix
contains a transposed from of the itemMatrix.
- coerce
signature(from = "ngCMatrix", to = "itemMatrix")
;
Note, the ngCMatrix
has to be transposed with items as rows!
- c
signature(object = "itemMatrix")
; combine.
- dim
signature(x = "itemMatrix")
;
returns the dimensions of the itemMatrix.
- dimnames, rownames, colnames
signature(x = "itemMatrix")
;
returns row (itemsetID) and column (item) names.
- dimnames
signature(x = "itemMatrix")
;
returns dimnames.
- dimnames<-
signature(x = "itemMatrix", value = "list")
;
replace dimnames.
- %in%
signature(x = "itemMatrix", table = "character")
;
matches the strings in table
against the item labels
in x
and returns a logical vector indicating if
a row (itemset) in x
contains any of the
items specified in table
.
Note that there is a %in%
method with
signature(x = "itemMatrix", table = "character")
. This method is
described in together with match
.
- %ain%
signature(x = "itemMatrix", table = "character")
;
matches the strings in table
against the item labels
in x
and returns a logical vector indicating if
a row (itemset) in x
contains all of the
items specified in table
.
- %oin%
signature(x = "itemMatrix", table = "character")
;
matches the strings in table
against the item labels
in x
and returns a logical vector indicating if
a row (itemset) in x
contains only
items specified in table
.
- %pin%
signature(x = "itemMatrix", table = "character")
;
matches the strings in table
against the item labels
in x
(using partial matching) and returns a
logical vector indicating if
a row (itemset) in x
contains any of the
items specified in table
.
- itemLabels
signature(object = "itemMatrix")
;
returns the item labels used for encoding as a character vector.
- itemLabels<-
signature(object = "itemMatrix")
;
replaces the item labels used for encoding.
- itemInfo
signature(object = "itemMatrix")
;
returns the whole item/column information data.frame including
labels.
- itemInfo<-
signature(object = "itemMatrix")
;
replaces the item/column info by a data.frame.
- itemsetInfo
signature(object = "itemMatrix")
;
returns the item set/row information data.frame.
- itemsetInfo<-
signature(object = "itemMatrix")
;
replaces the item set/row info by a data.frame.
- labels
signature(x = "transactions")
;
returns labels for the itemsets. The following arguments can
be used to customize the representation of the labels:
itemSep
,
setStart
and
setEnd
.
- nitems
signature(x = "itemMatrix")
; returns the number
of items (number in columns) in the itemMatrix.
- show
signature(object = "itemMatrix")
- summary
signature(object = "itemMatrix")