powered by
This function facilitate the selection of a subset from a set of rules.
filter.rules( rules, pattern = NULL, left = pattern, right = pattern, removeMatches = FALSE )
The filtered set of rules.
A set of rules.
A pattern to match (antecedent and consequent): a character string.
A pattern to match (antecedent only): a character string.
A pattern to match (consequent only): a character string.
A logical indicating whether to remove matching rules (TRUE) or to keep those (FALSE).
TRUE
FALSE
apriori, subset
apriori
subset
require ("arules") data ("Adult") r = apriori (Adult) filter.rules (r, right = "marital-status=") subset (r, subset = rhs %pin% "marital-status=")
Run the code above in your browser using DataLab