rp.outlier: Outlier test

Description Usage Arguments Value References Examples

Description

A simple test for outliers. This functions returns all extreme values (if any) found in the specified vector.

Usage

1

Arguments

x

a numeric vector of values

Value

vector of outlier values

References

Credit goes to PaulHurleyuk: http://stackoverflow.com/a/1444548/564164

Examples

1
2
3
4
5
6
## Not run: 
rp.outlier(mtcars$hp)
rp.outlier(c(rep(1,100), 200))
rp.outlier(c(rep(1,100), 200,201))

## End(Not run)

Example output

Loading required package: reshape
sh: 1: cannot create /dev/null: Permission denied

Attaching package: 'rapportools'

The following objects are masked from 'package:stats':

    IQR, median, sd, var

The following objects are masked from 'package:base':

    max, mean, min, range, sum

NULL
[1] 200
[1] 200 201

rapportools documentation built on May 1, 2019, 8:18 p.m.