IQRoutliers: Computes outliers

Description Usage Arguments Value Examples

View source: R/IQRoutliers.R

Description

This function computes outliers centralized around a day, using a number of days around it

Usage

1
IQRoutliers(date, value, level = 3, window = 11, exclude = NULL)

Arguments

date

vector with dates

value

vector with data values

level

number of IQRs to be added to percentile 75 and subtracted to percentile 25 to determinate the tolerance interval. Values outside this interval, will be declared as outliers.

window

number of days to be considered (including the target)

exclude

if it is not null, the code will exclude this value from the analysis (i.e., good to exclude 0 for precipitation)

Value

positions which do not pass this QC test

Examples

1
2
3
4
5
6
7
#Extract the ECA&D data file from the example data folder
path2inptfl<-system.file("extdata", "TX_SOUID132734.txt", package = "INQC")
#Read the data file
date<-readecad(input=path2inptfl,missing= -9999)[,3]
value<-readecad(input=path2inptfl,missing= -9999)[,4]
#Find all suspicious positions in the time series
IQRoutliers(date,value,level=3,window=11,exclude=NULL)

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