# as.list.RuleSetRST: The 'as.list' method for RST rule sets In RoughSets: Data Analysis Using Rough Set and Fuzzy Rough Set Theories

## Description

A function for converting a set of rules into a list.

## Usage

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

## Arguments

 `x` a `"RuleSetRST"` object. See `RI.LEM2Rules.RST`. `...` the other parameters.

## Value

Converts rules from a set into a list.

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.list(rules) ```

### Example output

```Loading required package: Rcpp
[[1]]
[[1]]\$idx
[1] 2

[[1]]\$values
[1] "High"

[[1]]\$consequent
[1] "Accept"

[[1]]\$support
[1] 2 3 4

[[1]]\$laplace
Accept
0.8

[[2]]
[[2]]\$idx
[1] 1 4

[[2]]\$values
[1] "MBA"       "Excellent"

[[2]]\$consequent
[1] "Accept"

[[2]]\$support
[1] 1

[[2]]\$laplace
Accept
0.6666667

[[3]]
[[3]]\$idx
[1] 2

[[3]]\$values
[1] "Low"

[[3]]\$consequent
[1] "Reject"

[[3]]\$support
[1] 5 6 8

[[3]]\$laplace
Reject
0.8

[[4]]
[[4]]\$idx
[1] 4 2

[[4]]\$values
[1] "Neutral" "Medium"

[[4]]\$consequent
[1] "Reject"

[[4]]\$support
[1] 7

[[4]]\$laplace
Reject
0.6666667

attr(,"uniqueCls")
[1] "Accept" "Reject"
attr(,"supportDenominator")
[1] 8
attr(,"clsProbs")
clsVec
Accept Reject
0.5    0.5
attr(,"majorityCls")
[1] "Accept"
attr(,"method")
[1] "LEM2Rules"
attr(,"dec.attr")
[1] "Decision"
attr(,"colnames")
[1] "Diploma"    "Experience" "French"     "Reference"
```

RoughSets documentation built on May 29, 2017, 7:06 p.m.