Displaying 1 result from an estimated 1 matches for "basketid".
2010 Sep 01
1
transaction object - how to coerce this data
...arules package. I need
to transform my data into a "transactions" object. The data I read in from a
file has 2 columns, an ID and an item. How do I convert data like this into
a transactions object?
I've tried
class? transactions
but it only confuses me.
My data is like this....
basketID item
1 bread
1 cheese
1 milk
2 bread
2 cheese
2 eggs
3 bread
3 cheese
3 beer
and from what I gather it should be like this?
data <- list(
c("bread","cheese","milk"),
c("bread","cheese","eggs"),
c("bread",&q...