detect_outliers {cleanTS}R Documentation

Find outliers in the data

Description

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.


[Package cleanTS version 0.1.2 Index]