Remove attributes from the dataset

Share:

Description

Remove spectified attributes generating a new multi-label dataset.

Usage

1
remove_attributes(mdata, attributes)

Arguments

mdata

The mldr dataset to remove labels.

attributes

Attributes indexes or attributes names to be removed.

Value

a new mldr object.

Note

If invalid attributes names or indexes were informed, they will be ignored.

See Also

Other pre process: fill_sparce_mldata, normalize_mldata, remove_labels, remove_skewness_labels, remove_unique_attributes, remove_unlabeled_instances, replace_nominal_attributes

Examples

1
2
toyml1 <- remove_attributes(toyml, c("iatt8","iatt9", "ratt10"))
toyml2 <- remove_attributes(toyml, 10)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.