Skip to contents

[Experimental]

Help function detects the potential outlier with Tukey method where the number is below Q1-1.5*IQR and above Q3+1.5*IQR.

Usage

tukey_outlier(x)

Arguments

x

(numeric)
numeric input

Value

A list contains outliers and vector without outliers.

Examples

x <- c(13.6, 44.4, 45.9, 14.9, 41.9, 53.3, 44.7, 95.2, 44.1, 50.7, 45.2, 60.1, 89.1)
tukey_outlier(x)
#> $ord
#> [1]  1  4  8 13
#> 
#> $out
#> [1] 13.6 14.9 95.2 89.1
#> 
#> $subset
#> [1] 44.4 45.9 41.9 53.3 44.7 44.1 50.7 45.2 60.1
#>