powered by
BNDataset
Impute a BNDataset raw data with missing values.
impute(object, k.impute = 10)# S4 method for BNDataset impute(object, k.impute = 10)
# S4 method for BNDataset impute(object, k.impute = 10)
the BNDataset object.
number of neighbours to be used; for discrete variables we use mode, for continuous variables the median value is instead taken.
if (FALSE) { dataset <- BNDataset("file.data", "file.header") dataset <- impute(dataset) }
Run the code above in your browser using DataLab