Learn R Programming

mlr (version 2.3)

capLargeValues: Convert large/infinite numeric values in a data.frame or task.

Description

Convert numeric entries which large/infinite (absolute) values in a data.frame Only numeric/integer columns are affected.

Usage

capLargeValues(obj, cols = NULL, threshold = Inf, impute = threshold,
  what = "abs")

Arguments

Value

[data.frame]

See Also

Other eda_and_preprocess: createDummyFeatures; dropFeatures; mergeSmallFactorLevels; normalizeFeatures; removeConstantFeatures; summarizeColumns

Examples

Run this code
capLargeValues(iris, threshold = 5, impute = 5)

Run the code above in your browser using DataLab