replace_nominal_attributes: Replace nominal attributes Replace the nominal attributes by...

Description Usage Arguments Value See Also Examples

View source: R/pre_process.R

Description

Replace nominal attributes Replace the nominal attributes by binary attributes.

Usage

1
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

1
2
3
4
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))

rivolli/utiml documentation built on June 1, 2021, 11:48 p.m.