I have a table with two columns Category
,Number
and a lot of rows in a CSV
file. Each value like 1
in Category
has a relation with some values like 1
,2
,...,k
in Number
. In other words, my table is:
Category Number
1 1
1 2
.
.
.
1 100
2 101
2 102
.
.
.
2 200
.
.
.
I want to create itemsets
according to the table in CSV
file using R
, something like this:
1 = (1, 2, ..., 100)
2 = (101, 102, ..., 200)
.
.
.
I googled, but I didn't find any solutions. How can I do this?