| pat_apriori | R Documentation |
Frequent itemsets and association rules using arules::apriori.
pat_apriori(
parameter = list(supp = 0.5, conf = 0.9, minlen = 2, maxlen = 10, target = "rules"),
appearance = NULL,
control = NULL
)
parameter |
list of parameters passed to |
appearance |
list of item appearance constraints |
control |
list of control parameters |
returns a pat_apriori object
data("AdultUCI", package = "arules")
trans <- suppressWarnings(methods::as(as.data.frame(AdultUCI), "transactions"))
pm <- pat_apriori(parameter = list(
supp = 0.5, conf = 0.9, minlen = 2, maxlen = 10, target = "rules"
))
pm <- fit(pm, trans)
rules <- discover(pm)
arules::inspect(rules)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.