I am qualitatively coding a dataset based on theme. Each observation is allowed two themes, therefore I have two columns with the same variable list. When I run arules, it see "v1=alpha; v2=beta" as different item than "v1=beta;v2=alpha." As below,
| V1 | V2 |
| -------- | ----- |
| ALPHA | BETA |
| BETA | ALPHA |
Here's my code:
pr_itemset<-apriori(
pr_trans,parameter=list(
target="frequent",support=.001,minlen=2,maxlen=4))