Detects outliers in a data.frame/tibble using isolation forests

outliers_detect_iforest(s, threshold = 0.5)

Arguments

s

numeric vector for which the outliers need to be found

threshold

threshold for considering an outlier

Value

boolean vector with indices makerd true for the outliers

Examples

outliers_detect_iforest(c(1,1,1,1,1,1,1,1,1,1,1e14))
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE