View source: R/unsupervised-market-basket.R
| inspect_rules | R Documentation |
View rules sorted by various quality measures
inspect_rules(rules_obj, by = "lift", n = 10, decreasing = TRUE)
rules_obj |
A tidy_apriori object or rules object |
by |
Sort by: "support", "confidence", "lift" (default), "count" |
n |
Number of rules to display (default: 10) |
decreasing |
Sort in decreasing order? (default: TRUE) |
A tibble of top rules
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.