View source: R/find_outliers.R
find_outliers | R Documentation |
This function identifies outliers in a numeric variable of a data.frame using the interquartile range (IQR) method.
find_outliers(data, variable_name)
data |
A data.frame object. |
variable_name |
A symbol representing a numeric variable in |
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.
data(mtcars)
find_outliers(mtcars, mpg)
find_outliers(mtcars, wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.