I have a CSV file with twelve fields: the first six represent events, the other six actions. For example:
q,w,e, , , ,a,s,d,f, ,
q,t,y,i, , ,s,f,g, , ,
w,r, , , , ,d,f,g,j,k,l
...and so on (I inserted the blank spaces only for ease of reading, but in the original file there are no spaces).
The order of events in the first six positions is not important (q,w is the same of w,q). The same applies to actions in the last six positions.
I need to find out all the rules like:
single event => list of actions (one or more)
...with a given support and a given confidence. How can I achieve this using the R implementation of the "Apriori" or "FP-Growth" algorithm?
Thanks in advance, Tony