R/explore_outliers.R
explore_outliers.Rd
Explores outliers in each feature of dataset based on standard deviation range. Before calculation, NA rows are dropped and only numeric columns are
explore_outliers(df, std_range)
df | A data.frame: The target dataframe to explore |
---|---|
std_range | A integer: The range of standard deviation |
data.frame: Dataframe with details on the outliers
df <- data.frame('col1'= c(1, 2, 1.00, 3, -1, 100), 'col2'= c(3, 1 ,3, -2, 3, -1)) explore_outliers(df, 2)#> outlier_count #> col1 1 #> col2 0