MV.deletionCases {RoughSets} | R Documentation |
It is used for handling missing values by deleting instances. It should be noted that the output of the function is val.NA
which contains indices of missing values and their values (i.e., NA). Therefore, in order to generate a new decision table (dataset)
the user need to execute SF.applyDecTable
.
MV.deletionCases(decision.table)
decision.table |
a |
A class "MissingValue"
. See MV.missingValueCompletion
.
Lala Septem Riza
J. Grzymala-Busse and W. Grzymala-Busse, "Handling Missing Attribute Values," in Data Mining and Knowledge Discovery Handbook, O. Maimon and L. Rokach, Eds. New York : Springer, 2010, pp. 33-51
#############################################
## Example : Deletion Cases
#############################################
dt.ex1 <- data.frame(
c("high", "very_high", NA, "high", "high", "normal", "normal", NA),
c(NA, "yes", "no", "yes", NA, "yes", "no", "yes"),
c("no", "yes", "no", "yes", "yes", "no", "yes", NA),
c("yes", "yes", "no", "yes", "no", "no", "no", "yes"))
colnames(dt.ex1) <- c("Temp", "Headache", "Nausea", "Flu")
decision.table <- SF.asDecisionTable(dataset = dt.ex1, decision.attr = 4,
indx.nominal = c(1:4))
indx = MV.deletionCases(decision.table)