replace_nominal_attributes {utiml} | R Documentation |
Replace nominal attributes Replace the nominal attributes by binary attributes.
replace_nominal_attributes(mdata, ordinal.attributes = list())
mdata |
The mldr dataset to remove. |
ordinal.attributes |
Not yet, but it will be used to specify which attributes need to be replaced. |
a new mldr object.
Other pre process:
fill_sparse_mldata()
,
normalize_mldata()
,
remove_attributes()
,
remove_labels()
,
remove_skewness_labels()
,
remove_unique_attributes()
,
remove_unlabeled_instances()
new.toy <- toyml
new.column <- as.factor(sample(c("a","b","c"), 100, replace = TRUE))
new.toy$dataset$ratt10 <- new.column
head(replace_nominal_attributes(new.toy))