fill_sparse_mldata: Fill sparse dataset with 0 or " values

Description Usage Arguments Value See Also Examples

View source: R/pre_process.R

Description

Transform a sparse dataset filling NA values to 0 or ” based on the column type. Text columns with numeric values will be modified to numerical.

Usage

1

Arguments

mdata

The mldr dataset to be filled.

Value

a new mldr object.

See Also

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

Examples

1
2
3
sparse.toy <- toyml
sparse.toy$dataset$ratt10[sample(100, 30)] <- NA
complete.toy <- fill_sparse_mldata(sparse.toy)

utiml documentation built on May 31, 2021, 9:09 a.m.