#########################################################
## Example 1: Hiring dataset containing 8 objects with 5 attributes
#########################################################
if (FALSE) data(RoughSetData)
decision.table <- RoughSetData$hiring.dt
## get reduct as FeatureSubset class
reduct.1 <- FS.nearOpt.fvprs.FRST(decision.table)
## get new decision table according to the reduct
new.decTable <- SF.applyDecTable(decision.table, reduct.1)
#########################################################
## Example 2: Pima dataset containing 7 objects with 9 attributes
#########################################################
data(RoughSetData)
decision.table <- RoughSetData$pima7.dt
## get reduct
reduct.2 <- FS.nearOpt.fvprs.FRST(decision.table)
## get new decision table according to the reduct
new.decTable <- SF.applyDecTable(decision.table, reduct.2)
Run the code above in your browser using DataLab