remOutliersVec: Remove outliers from left and/or right of the distribution

Description Usage Arguments Value Examples

Description

Data is removed such that the inner fraction (specified by parameter keeperc) is kept

Usage

1
remOutliersVec(in.v, keeperc = 0.99, mode = c("both", "left", "right"))

Arguments

keeperc

Percentage (fraction) of data to keep

mode

Specifies where to remove data. The default both removes on both sides and keeps the inner fraction. If left (right), data on the left (right) hand side of the distribution is removed.

in.dt

Input vector

Value

vector without outliers. All columns are preserved.

Examples

1
2
3
4
5
6
7
v = rnorm(1000, 1, 0)

# keep 99% of inner data
remOutliers(v)

# keep 90% of data; data will be removed from the left side of the histogram
remOutliers(v, 0.9, 'left')

dmattek/hcs-package documentation built on May 16, 2019, 7:24 a.m.