search_rule {TFARM} | R Documentation |
The function looks for an association rule in a dataset data
with a fixed left-hand-side (LHS
) and a fixed right-hand-side
(RHS
). The function is used in the rulesTF0
.
search_rule(data, LHS, RHS)
data |
a binary matrix or data.frame in which the rule is searched |
LHS |
a string with the left-hand-side of the searched rule |
RHS |
a string with the right-hand-side of the searched rule |
A vector with five elements: the left-hand-side of the searched rule, the right-hand-side of the searched rule, the support, confidence and lift of the found rule.