adjust_outlier {cola} | R Documentation

## Adjust outliers

### Description

Adjust outliers

### Usage

    adjust_outlier(x, q = 0.05)

### Arguments

`x` | A numeric vector.
`q` | Quantile to adjust.

### Details

Vaules larger than quantile `1 - q` are adjusted to the `1 - q` quantile and values smaller than quantile `q` are adjusted to the `q` quantile.

### Value

A numeric vector with same length as the original one.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    x = rnorm(10)
    x[1] = 100
    adjust_outlier(x)

[Package cola version 1.0.1 Index]