Page 1 of 1

What is the right order to implement the following R Script? - plot(topRules) plot(topRules, method="graph") - rules <-

Posted: Fri May 20, 2022 6:12 pm
by answerhappygod
What is the right order to implement the following R Script?
- plot(topRules) plot(topRules, method="graph")
- rules <- apriori(tr, parameter = list(supp=0.003,
conf=0.8)) rules <- sort(rules, by='confidence', decreasing =
TRUE)
- library(plyr) tr <- read.transactions('market_basket2.csv',
format ='basket', sep=',') summary(tr)
- summary(rules)
- inspect(rules[1:10]) inspect(SORT(rules, by =
"confidence")[1:3])