physics: Isolates anomalous values

Description Usage Arguments Value Examples

View source: R/physics.R

Description

Given a data vector, the function will compare the values to the specified threshold

Usage

1
physics(x, nyu = 0, compare = 1)

Arguments

x

data vector

nyu

threshold, numeric

compare

logical operation to apply over the threshold. 1: larger; 2: larger or equal; 3: smaller; 4: smaller or equal; 5 equal

Value

list of positions which do not pass this QC test. If all positions pass the test, returns NULL

Examples

1
2
3
x<-rnorm(100)
x[10]<-100
physics(x,5,1)

INQC documentation built on May 24, 2021, 5:07 p.m.