I am trying to mine frequent itemsets and association rules from data which is in a .CSV file. Learnt about the arules package in R and decided to use it.
Facing problem with the creation of dataframe from the CSV.
My CSV file essentially has the data in the following format:
transactionid,items
1,"milk,beer,diapers"
2,"coke,milk,eggs"
3,"diapers,eggs,coke"
Could anyone help me with the creation of dataframe to pass it to the apriori() or elact() functions of the arules library?
Thanks!