repeatedvalue: Finds repeated values

Description Usage Arguments Value Examples

View source: R/repeatedvalue.R

Description

This function looks for a value which repeats too many times and, given the decaying shape of empirical distribution of precipitation data, is considered too large to happen that many times

Usage

1
repeatedvalue(x, margin = 20, friki = 150)

Arguments

x

precipitation time series

margin

threshold for differences in frequency of the nearest value

friki

minimum of precipitation values to be considered

Value

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

Examples

1
2
3
4
5
6
#Extract the ECA&D data file from the example data folder
path2inptfl<-system.file("extdata", "RR_SOUID132730.txt", package = "INQC")
#Read the data file
x<-readecad(input=path2inptfl,missing= -9999)[,4]
#Find all suspicious positions in the time series
repeatedvalue(x,margin=10,friki=10)

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