I have a data in the following form :
CIN TRN_TYP
9079954 1
9079954 2
9079954 3
9079954 4
9079954 5
9079954 4
9079954 5
9079954 6
9079954 7
9079954 8
9079954 9
9079954 9
. .
. .
. .
there are 100 types of CIN
(9079954,12441087,15246633,...) and respective TRN_TYP
first of all, I want this data to be grouped into basket format:
9079954 1, 2, 3, 4, 5, ....
12441087 19, 14, 21, 3, 7, ...
.
.
.
and then apply eclat
from arules
package to find frequent patterns.
Please help