adjust_outlier: Adjust outliers

Description Usage Arguments Details Value Author(s) Examples

View source: R/utils.R

Description

Adjust outliers

Usage

1
adjust_outlier(x, q = 0.05)

Arguments

x

A numeric vector.

q

Percentile to adjust.

Details

Vaules larger than percentile 1 - q are adjusted to the 1 - q percentile and values smaller than percentile q are adjusted to the q percentile

Value

A numeric vector with same length as the original one.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
set.seed(123)
x = rnorm(40)
x[1] = 100
adjust_outlier(x)

cola documentation built on Nov. 8, 2020, 8:12 p.m.