Skip to contents

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.

Examples

if (FALSE) {
data(mtcars)
find_outliers(mtcars, mpg)
find_outliers(mtcars, wt)
}