Learn R Programming

vvauditor (version 0.7.0)

identify_outliers: Identify Outliers in a Data Frame Column

Description

This function identifies outliers in a specified column of a data frame. It returns a tibble containing the unique values, tally, and whether it is an outlier or not.

Usage

identify_outliers(df, var)

Value

A tibble containing the unique values, tally, and whether each value is an outlier or not.

Arguments

df

The data frame.

var

The column to check for outliers.

Examples

Run this code
df <- data.frame(a = c(1, 2, 3, 100, 101), b = c(4, 5, 6, 7, 8), c = c(7, 8, 9, 100, 101))
outliers <- identify_outliers(df, "a")
print(outliers)

Run the code above in your browser using DataLab