I have a data file recording the type
of transaction followed by the items in the transaction (in basket
format):
type1 | eggs | chocolate | milk
type2 | milk | bread
type1 | savory | tomato
type3 | chicken
I would later want to remove different type
values with appearance:
rules = apriori(dataset, parameter = list(support= 0.1, confidence=0.2),
appearance = list(none = c("type=type1", "type=type2")
How do I read in the transactions with the type
column? The following does not work as I have data in basket
format.
dataset = read.transactions('data.csv', sep = '|', cols=c("type","Products"))