Unlimited learning, half price | 50% off
Get 50% off unlimited learning

RoughSetKnowledgeReduction (version 0.1)

getRule: GET RULE

Description

Method for obtaining a rule of a Decision Table object as a numeric vector.

Usage

getRule(object, ruleIndex)

Arguments

object
A Decision Table object
ruleIndex
A numeric vector made of the row indexes of the rules wanted

Value

References

Pawlak, Zdzislaw 1991 Rough Sets: Theoretical Aspects of Reasoning About Data Dordrecht: Kluwer Academic Publishing.

See Also

DecisionTable-class

Examples

Run this code
exampleMatrix1 <- matrix(c(1,0,2,1,1,2,2,0,0,1,0,1,0,2,1,1,2,
1,0,0,2,0,1,1,2,1,1,2,0,1,1,0,0,2,1,2,1,1,2,1),ncol = 5)
dt <- decisionTable(exampleMatrix1)
ruleIndex <- c(1,2,4,7,8)
ruleSet <- getRule(dt,ruleIndex)

Run the code above in your browser using DataLab