find_outliers {dlookr} | R Documentation |
Finding variables including outliers
Description
Find the numerical variable that contains outliers in the object that inherits the data.frame or data.frame.
Usage
find_outliers(.data, index = TRUE, rate = FALSE)
Arguments
.data |
a data.frame or a |
index |
logical. When representing the information of a variable including outliers, specify whether or not the variable is represented by an index. Returns an index if TRUE or a variable names if FALSE. |
rate |
logical. If TRUE, returns the percentage of outliers in the individual variable. |
Value
Information on variables including outliers.
See Also
Examples
find_outliers(heartfailure)
find_outliers(heartfailure, index = FALSE)
find_outliers(heartfailure, rate = TRUE)
## using dplyr -------------------------------------
library(dplyr)
# Perform simple data quality diagnosis of variables with outliers.
heartfailure %>%
select(find_outliers(.)) %>%
diagnose()
[Package dlookr version 0.6.3 Index]