print.RuleSetRST: The print function for RST rule sets

Description Usage Arguments Value Author(s) Examples

View source: R/IOFunctions.R

Description

A print method for RuleSetRST objects.

Usage

1
2
## S3 method for class 'RuleSetRST'
print(x, howMany = min(10, length(x)), ...)

Arguments

x

a "RuleSetRST" object. See RI.LEM2Rules.RST.

howMany

an integer giving the number of rules to be printed. The default is minimum from 10 and the total number of rules in the set.

...

the other parameters.

Value

prints its argument and returns it invisibly

Author(s)

Andrzej Janusz

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
###########################################################
## Example : Printing of a decision rule set problem
###########################################################
data(RoughSetData)
hiring.data <- RoughSetData$hiring.dt

rules <- RI.LEM2Rules.RST(hiring.data)

rules             # all rules are printed
print(rules, 2)   # only the first two rules are printed

# printing a subset of rules
rules[2:3]

janusza/RoughSets documentation built on May 31, 2018, 11:11 a.m.