detect_outliers: Find outliers in the data

View source: R/outlier_detection.R

detect_outliersR 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.


cleanTS documentation built on July 9, 2023, 5:15 p.m.