Description Usage Arguments Value Author(s) Examples
Subsetting a set of decision rules.
1 2 | ## S3 method for class 'RuleSetRST'
x[i, ...]
|
x |
a |
i |
integer indices specifying elements to be extracted or replaced. |
... |
the other parameters. |
A subset of rules.
Andrzej Janusz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ###########################################################
## Example : Subsetting a set of decision rules
###########################################################
data(RoughSetData)
hiring.data <- RoughSetData$hiring.dt
rules <- RI.LEM2Rules.RST(hiring.data)
rules
# taking a subset of rules
rules[1:3]
rules[c(TRUE,FALSE,TRUE,FALSE)]
# replacing a subset of rules
rules2 <- rules
rules2[c(2,4)] <- rules[c(1,3)]
rules2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.