find_outliers {qtkit} | R 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 |
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)
[Package qtkit version 1.0.0 Index]