Learn R Programming

INQC (version 2.0.5)

physics: Isolates anomalous values

Description

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

Usage

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

Run this code
# NOT RUN {
x<-rnorm(100)
x[10]<-100
physics(x,5,1)
# }

Run the code above in your browser using DataLab