Description Usage Arguments Methods (by generic) Slots
The S4 class TransactionData
characterises the
entered transaction matrix using two different slots. An object of the
class TransactionData
can be analysed with show
, summary
,plot
, itemtail
and tryminimum
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## S4 method for signature 'TransactionData'
show(object)
## S4 method for signature 'TransactionData'
summary(object)
## S4 method for signature 'TransactionData'
itemtail(object, support, absolute = FALSE,
rare = FALSE)
## S4 method for signature 'TransactionData'
plot(x)
## S4 method for signature 'TransactionData'
tryminimum(object)
|
object |
Object of class |
support |
User specified minimum support |
absolute |
Logical |
rare |
Logical |
x |
Object of class |
show
: Shows number of transactions and items
in the transaction matrix
summary
: Returns data.frame of each item in the
transaction matrix and their frequencies
itemtail
: Returns data.frame of either the most freqeunt
single items or the most rare single items.
User can choose wether the occurence of the items is displayed in terms
of absolute or relative values.
plot
: Bar plot of the most frequently occuring
items displaying their absolute frequencies
tryminimum
: Provides the number of frequent items for four
different minimum support values, giving an impression of the influence of
the minimum support
data
Transaction matrix in the shape of a sparsematrix (ngCMatrix)
items
Character vector containing the item names of the trancastion matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.