winsor: Winsorization function

Description Usage Arguments Details Value Author(s)

Description

Winsorization function

Usage

1
winsor(x, fraction = 0.05, lower = FALSE)

Arguments

x

Numeric vector

fraction

The fraction of cells on

lower

By default this function will only winsorise the upper end. If you also require the bottom end to be winsorised set this to TRUE.

Details

Winsorization function. Transformation limiting spurious extreme values. Will set all outliers to a specific percentile of the data.

Value

Return winsorized vector

Author(s)

Wajid Jawaid


wjawaid/bglab documentation built on May 4, 2019, 6:33 a.m.