SF.asFeatureSubset {RoughSets} | R Documentation |
Converting custom attribute name sets into a FeatureSubset object
Description
The function can be used to change a custom set of attribute names from a decision table into an object of the FeatureSubset class. It can be useful for converting results of discernibility matrix-based attribute selection methods (i.e. functions FS.all.reducts.computation and FS.one.reduct.computation).
Usage
SF.asFeatureSubset(
colNames,
decisionTable = NULL,
attributeNames = NULL,
type.method = "custom subset",
model = "custom"
)
Arguments
colNames |
a character vector containing names of attributes from a decision table |
decisionTable |
a decision table which contains attributes from colNames,
can be |
attributeNames |
a character vector of names of decision table's attributes,
can be |
type.method |
an indicator of the method used for selecting the attributes |
model |
an indicator of the model used for selecting the attributes |
Value
an object of a class FeatureSubset
Author(s)
Andrzej Janusz
Examples
#############################################################
## Example 1:
#############################################################
data(RoughSetData)
wine.data <- RoughSetData$wine.dt
dim(wine.data)
## selection of an arbitrary attribute subset
attrNames = colnames(wine.data)[1:3]
attrNames
class(attrNames)
## convertion into a FeatureSubset object
reduct <- SF.asFeatureSubset(attrNames, wine.data,
type.method = "greedy reduct from a discernibility matrix")
class(reduct)
reduct