how to convert data.frame to transactions for arules
I have found some information that worked for me on this website. Let me copy relevant paragraph: The dataframe can be in either a normalized (single) form or a flat file (basket) form. When the file is in basket form it means that each record represents a transaction where the items in the basket are … Read more