FrequentItemsets: A function to find frequent itemsets using the wonderful spmf...

Description Usage Arguments Value

Description

This function sends a list of baskets to spmf and gets back the most frequent itemsets with their support and frequence.

Usage

1
FrequentItemsets(x, algo, minsup, clean = T)

Arguments

x

is the output of the fnction df2SPMFBasket function. It must contain a toSendSPMF storing a tibble with a basket column. This basket is sent to spmf java library.

algo

is the name of the algorithm to be used. The possible values are : "Apriori","Apriori_TID","FPGrowth_itemsets","Eclat","HMine","FIN","LCMFreq","AprioriClose","Charm_bitset","dCharm_bitset","LCM","FPMax","Charm_MFI","defME". Please check SPMF documentation at http://www.philippe-fournier-viger.com/spmf/index.php?link=documentation.php

minsup

is the value of the minimum support for an itemset to be seen as frequent. to get all the itemset present in more than 40 percent of the transactions, type either "40%" or "0.4"

clean

if clean=F the text files sent to spmf will be kept in the working directory.

Value

a dataframe with three columns. itemset contains all the frequent itemsets, that is a list of products. support is the number of times this itemsets occurs, and frequence is support divided by the total number of transactions


MGousseff/r2spmf documentation built on May 26, 2019, 11:58 p.m.