[R] Shifting cells and removing blanks

2013-03-26 Thread ankur verma
Hi , I've been struggling with this problem. Initially I thought something like a na.locf would help but I'm at a dead end. I have a data set like this: ID Prod1 Prod2 Prod3 Prod4 Prod5 01A - B- C 02 - F - G

[R] Arules - predict function issues - subscript out of bounds

2012-06-25 Thread ankur verma
Hi, I'm doing a Market Basket Analysis in which I have a list of transaction id's in column 2 and transactions(product names) in column 1. I read this into a transaction file using a txn-read.transaction(file=data.csv,format='single', rm.duplicates=F, cols=c(1,2)) If I want to use the apriori