Skip to contents

This function detects outliers/anomalies in the data. If the replace_outlier argument is set to TRUE, then the outliers are removed and imputed using the provided imputation methods.

Usage

detect_outliers(dt, replace_outlier, imp_methods)

Arguments

dt

A data.table.

replace_outlier

Boolean, defaults to TRUE. Specify if the outliers are to be removed and imputed.

imp_methods

The imputation methods to be used.

Value

The outliers found in the data. If the outliers are replaced, then the imputation errors are also returned.