Learn R Programming

lfl (version 1.4.2)

antecedents: Extract antecedent-part (LHS) of the rules in a list

Description

Given a list of rules, the function returns a list of antecedents (i.e. left hand side) of the rules.

Usage

antecedents(rules)

Arguments

rules

Either a list of rules or an object of class farules.

Value

A list of character vectors.

Details

This function assumes rules to be a list of character vectors where the first element of each vector is a consequent part of the rule and the rest is the antecedent part of the rule. Function returns a list of antecedents.

See Also

farules