Highlight variables containing certain threshold of outliers

flag_outliers(df, threshold = 0.1)

Arguments

df

A dataframe or tibble containing numeric variables

threshold

Threshold (minimum) required to flag variables with outliers

Value

Tibble containing name of variables and proportion of outliers contained

Examples

df <- data.frame('col1'=c(1,2,3), 'col2'=c(1,2,3))
flag_outliers(df, threshold=0.2)
#> # A tibble: 1 × 0