repeatedvalue {INQC} | R Documentation |
Finds repeated values
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
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
#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)
[Package INQC version 2.0.5 Index]