remove_outliers: Remove Outliers

View source: R/remove_outliers.R

remove_outliersR Documentation

Remove Outliers

Description

This simple function uses boxplot.stats() to determine outliers and removes them from the vector.

Usage

remove_outliers(x, coef = 1.5)

Arguments

x

a vector of values

coef

a multiple of the IQR that is allowed at maximum to keep values within the accepted range

Examples

remove_outliers(c(1,2,1,2,1,2,8))

remove_outliers(c(1,2,1,2,1,2))

certe-medical-epidemiology/certestats documentation built on Nov. 9, 2024, 8:15 p.m.