I am am getting the warning message in the title
number of items read is not a multiple of the number of columns
I have read about this warning message but I still don't figure out why I got it.
Here's my code:
data <- read.csv("C:/Users/mouna/Desktop/Targa Consult/BD.csv", header=TRUE,sep=";")
write.table(data, file ="basket.csv",sep=";",row.names=FALSE,col.names = TRUE)
tr <- read.transactions("basket.csv",format="single",sep=",",cols=c(3,4),rm.duplicates = TRUE)
summary(tr)
library(arules)
rules <- apriori(tr,parameter=list(supp=0.005,conf=0.8))
I got the warning message after running
tr <- read.transactions("basket.csv",format="single",sep=",",cols=c(3,4),rm.duplicates = TRUE)
Therefore after running
rules <- apriori(tr,parameter=list(supp=0.005,conf=0.8))
I got 0 rules.