Description Usage Arguments Value Examples
View source: R/FindFrequentItemsets.R
This function calculates the frequent itemset with a minimal support value.
1 | FindFrequentItemsets(dataset, minsupport)
|
dataset |
Transactions in an object of class TAMatrix, matrix, sparse matrix, data.frame or transactions. |
minsupport |
Minimal support value of the frequent itemsets that are calculated. |
Object of class FIMatrix containing the frequent items.
1 2 3 4 5 6 7 8 9 | # Calculate the frequent itemsets with minimal support 0.03
# and confidence 0.4 based on the dataset Groceries
Groceries_Fitems <- FindFrequentItemsets(Itemsets = Groceries, minsupport = 0.03)
# print the frequent itemsets
print(Groceries_Fitems)
# plot the frequent itemsets
plot(Groceries_Fitems)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.