Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

How to use the R implementation of the Apriori or FP-Growth algorithm starting from a CSV file?

$
0
0

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


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>