tl_detect_outliers: Detect outliers in the data

View source: R/diagnostics.R

tl_detect_outliersR Documentation

Detect outliers in the data

Description

Detect outliers in the data

Usage

tl_detect_outliers(
  data,
  variables = NULL,
  method = "iqr",
  threshold = NULL,
  plot = TRUE
)

Arguments

data

A data frame containing the data

variables

Character vector of variables to check for outliers

method

Method for outlier detection: "boxplot", "z-score", "cook", "iqr", "mahalanobis"

threshold

Threshold for outlier detection

plot

Logical; whether to create a plot of outliers

Value

A list with outlier detection results


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.