Learn R Programming

lfl (version 1.4.2)

consequents: Extract consequent-part (RHS) of the rules in a list

Description

Given a list of rules, the function returns a vector of consequents (i.e. right hand side) of the rules.

Usage

consequents(rules)

Arguments

rules

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

Value

A 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 consequent part of the rule. Function returns a vector of consequents.

See Also

farules