search for: transactionsfromsingleitem

Displaying 1 result from an estimated 1 matches for "transactionsfromsingleitem".

2008 Sep 03
0
How to read-in a transaction-table with single items per line via RODBC?
...ctions(tr_dat, format="single") of the package arules but I didn'd succeed getting the following error Error: invalid class "ngCMatrix" object: slot i is not *strictly* increasing inside a column. After reading the R source of read.transactions I wrote the below function transactionsFromSingleItems, which seems to work. The problem seemed to be that the items of the list tr_basket are not atomic. That's why I used the following ugly construct: tr_basket = as.list(sapply(tr_basket, as.character)) as a newbee that I am. But I think there must be an easier and more elegant way. Can anyb...