| supportingTransactions | R Documentation |
Find for each itemset in an associations object which transactions support (i.e., contains all items in the itemset) it. The information is returned as a tidLists object.
supportingTransactions(x, transactions, ...)
## S4 method for signature 'associations'
supportingTransactions(x, transactions)
x |
a set of associations (itemsets, rules, etc.) |
transactions |
an object of class transactions used to mine the
associations in |
... |
currently unused. |
An object of class tidLists containing one transaction ID
list per association in x.
Michael Hahsler
Other itemMatrix and transactions functions:
abbreviate(),
c(),
crossTable(),
duplicated(),
extract,
hierarchy,
image(),
inspect(),
is.superset(),
itemFrequency(),
itemFrequencyPlot(),
itemMatrix-class,
match(),
merge(),
random.transactions(),
sample(),
sets,
size(),
tidLists-class,
transactions-class,
unique()
data <- list(
c("a", "b", "c"),
c("a", "b"),
c("a", "b", "d"),
c("b", "e"),
c("b", "c", "e"),
c("a", "d", "e"),
c("a", "c"),
c("a", "b", "d"),
c("c", "e"),
c("a", "b", "d", "e")
)
data <- as(data, "transactions")
## mine itemsets
f <- eclat(data, parameter = list(support = .2, minlen = 3))
inspect(f)
## find supporting Transactions
st <- supportingTransactions(f, data)
st
as(st, "list")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.