replace_nominal_attributes {utiml}R Documentation

Replace nominal attributes Replace the nominal attributes by binary attributes.

Description

Replace nominal attributes Replace the nominal attributes by binary attributes.

Usage

replace_nominal_attributes(mdata, ordinal.attributes = list())

Arguments

mdata

The mldr dataset to remove.

ordinal.attributes

Not yet, but it will be used to specify which attributes need to be replaced.

Value

a new mldr object.

See Also

Other pre process: fill_sparse_mldata(), normalize_mldata(), remove_attributes(), remove_labels(), remove_skewness_labels(), remove_unique_attributes(), remove_unlabeled_instances()

Examples

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))

[Package utiml version 0.1.7 Index]