Sharon
Microsoft Employee
10 years agoAssociation Rules
Description
Association rules are ideal to quicly derive insights from large datasets. The rules are autmatically detected and visualized.
Prerequisites (The sample .pbix files will not...
Anonymous
10 years agoNot applicable
Answered by own question!
library(arules)
library(methods)
data(dataset)
dd1=as(dataset,"transactions")
trans=dd1
AdultData=as.data.frame(as(dd1, "matrix"))
AdultData=cbind(id=1:nrow(AdultData),AdultData)
replace data(Adult) with data(dataset) and R does the rest!.. didnt have eyes for details there.
patoduck
Helper III
9 years agoHi,
I have a table with 2 Columns ID and Product.
I want to Edit the Script in R, but I can't get it to work
How should it be the read.transactions statement?
> txn <- read.transactions(dataset, rm.duplicates= TRUE,format='basket',sep='','',cols =1)
But I get this error...
Error in readLines(file, encoding = encoding) : 'con' is not a connection