search_rule: Finds an association rule in a dataset.

Description Usage Arguments Value

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.


gaiac/TFARM documentation built on June 24, 2019, 5:43 p.m.