I am dealing with the R package arules. I have a csv file with 6 columns named respectively: item1,item2,item3,item4,item5,item6. Each cell represents an item in a basket and each row the whole basket for a transaction. The problem is that after reading the csv file as :
data <- read.csv('file.csv')
and after turning it into transactions:
trans <- as(data, "transactions")
I find that those cells that are empty are considered as items under the name i.e. 'itme3='. Is there a way to specify that empty cells have to be ignored or is it possible to eliminate certain items from an R transaction data?