Learn R Programming

wrMisc (version 1.15.3.1)

.offCenter: Return position of 'di' (numeric vector) which is most excentric (distant to 0), starts with NAs as most excentric

Description

This function aims to return position of 'di' (numeric vector) which is most excentric (distant to 0), starts with NAs as most excentric It is used for identifying/removing (potential) outliers. Note : this fx doesn't consider reference distrubutions, even with "perfect data" 'nMost' points will ba tagged !

Usage

.offCenter(di, nMost = 1)

Value

This function returns a integer/numeric vector (indicating index)

Arguments

di

(numeric) main input

nMost

(integer)

See Also

use in presenceFilt; diff

Examples

Run this code
.offCenter(11:14)

Run the code above in your browser using DataLab