View source: R/identify_outliers.R
identify_outliers | R Documentation |
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.
identify_outliers(df, var)
df |
The data frame. |
var |
The column to check for outliers. |
A tibble containing the unique values, tally, and whether each value is an outlier or not.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.