removeOutliers: Remove outliers by interquartile range

View source: R/general_functions.R

removeOutliersR Documentation

Remove outliers by interquartile range

Description

Outliers are defined as points more than a multiplier * IQR above the third quartile or multiplier * IQR below the first quartile. The default multiplier is 1.5.

Usage

removeOutliers(x, multiplier = 1.5)

Arguments

x

A vector of numeric values

multiplier

A value to multiply by IQR

Value

The vector with outliers replaced by 'NA'


blongworth/amsdata documentation built on June 15, 2022, 5:35 p.m.