getRule: GET RULE

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1
getRule(object, ruleIndex)

Arguments

object

A Decision Table object

ruleIndex

A numeric vector made of the row indexes of the rules wanted

Value

It returns a subset of rules as numeric matrix; each rule is a row.

Author(s)

Alber Sanchez alber.sanchez@uni-muenster.de

References

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

See Also

DecisionTable-class

Examples

1
2
3
4
5
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)

Example output



RoughSetKnowledgeReduction documentation built on May 2, 2019, 4 p.m.