find_outliers: Identify Outliers in a Numeric Variable

View source: R/find_outliers.R

find_outliersR Documentation

Identify Outliers in a Numeric Variable

Description

This function identifies outliers in a numeric variable of a data.frame using the interquartile range (IQR) method.

Usage

find_outliers(data, variable_name)

Arguments

data

A data.frame object.

variable_name

A symbol representing a numeric variable in data.

Value

A data.frame containing the outliers in variable_name. If no outliers are found, the function returns NULL. The function also prints diagnostic information about the variable and the number of outliers found.

Examples

data(mtcars)
find_outliers(mtcars, mpg)
find_outliers(mtcars, wt)


qtkit documentation built on Sept. 11, 2024, 5:14 p.m.