Learn R Programming

utiml (version 0.1.4)

replace_nominal_attributes: 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

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab