as.character.RuleSetRST: The 'as.character' method for RST rule sets

Description Usage Arguments Value Author(s) Examples

View source: R/IOFunctions.R

Description

A function for converting a set of rules into their character representation.

Usage

1
2
## S3 method for class 'RuleSetRST'
as.character(x, ...)

Arguments

x

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

...

the other parameters.

Value

Converts rules from a set into their character representation.

Author(s)

Andrzej Janusz

Examples

1
2
3
4
5
6
7
8
9
###########################################################
## Example : Converting a set of decision rules
###########################################################
data(RoughSetData)
hiring.data <- RoughSetData$hiring.dt

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

as.character(rules)

Example output

Loading required package: Rcpp
[1] "IF Experience is High THEN  is Accept; (supportSize=3; laplace=0.8)"                                         
[2] "IF Diploma is MBA and Reference is Excellent THEN  is Accept; (supportSize=1; laplace=0.666666666666667)"    
[3] "IF Experience is Low THEN  is Reject; (supportSize=3; laplace=0.8)"                                          
[4] "IF Reference is Neutral and Experience is Medium THEN  is Reject; (supportSize=1; laplace=0.666666666666667)"

RoughSets documentation built on Dec. 16, 2019, 1:37 a.m.