search_rule: Finds an association rule in a dataset.

Description Usage Arguments Value

View source: R/search_rule.R

Description

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.

Usage

1
search_rule(data, LHS, RHS)

Arguments

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

Value

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.


TFARM documentation built on Nov. 8, 2020, 7:01 p.m.