Database Reference
In-Depth Information
The inspect() function can display content of the rules generated previously.
The following code shows the top ten rules sorted by the lift. Rule {Instant food
products,soda}→{hamburger meat} has the highest lift of 18.995654.
inspect(head(sort(rules, by="lift"), 10))
lhs rhs
support confidence lift
1 {Instant food products,
soda} => {hamburger meat}
0.001220132 0.6315789 18.995654
2 {soda,
popcorn} => {salty snack}
0.001220132 0.6315789 16.697793
3 {ham,
processed cheese} => {white bread}
0.001931876 0.6333333 15.045491
4 {tropical fruit,
other vegetables,
yogurt,
white bread} => {butter}
0.001016777 0.6666667 12.030581
5 {hamburger meat,
yogurt,
whipped/sour cream} => {butter}
0.001016777 0.6250000 11.278670
6 {tropical fruit,
other vegetables,
whole milk,
yogurt,
domestic eggs} => {butter}
0.001016777 0.6250000 11.278670
7 {liquor,
red/blush wine} => {bottled beer}
0.001931876 0.9047619 11.235269
8 {other vegetables,
butter,
sugar} => {whipped/sour cream}
0.001016777 0.7142857 9.964539
9 {whole milk,
Search WWH ::




Custom Search