outTrim: Trim Outliers

View source: R/outTrim.R

outTrimR Documentation

Trim Outliers

Description

Trim extreme values from a vector.

Usage

outTrim(x, fraction = 0, na.rm = FALSE)

Arguments

x

a numeric vector.

fraction

the fraction (0 to 0.5) of observations to be trimmed from each end of x.

na.rm

whether NA values should be removed from vector before trimming.

Value

Sorted vector, same size or shorter than x.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.