climatic_outliers {dataresqc} | R Documentation |
Climatic outliers test
Description
Considers as outliers all values falling outside a range between,
for example, p25 - 3 interquartile ranges and p75 + 3 interquartile
The number of interquantile ranges can be modified through the parameter
IQR
.
Usage
climatic_outliers(
Data,
meta = NULL,
outpath,
IQR = NA,
bplot = FALSE,
outfile = NA,
...
)
Arguments
Data |
A character string giving the path of the input file, or a matrix with 5 (7) columns for daily (sub-daily) data: variable code, year, month, day, (hour), (minute), value. |
meta |
A character vector with 6 elements: station ID, latitude, longitude,
altitude, variable code, units. If |
outpath |
Character string giving the path for the QC results. |
IQR |
Interquantile range used to define outliers. By default it is 5 for precipitation, 3 for air temperature, and 4 for any other variable. |
bplot |
If TRUE, create a boxplot and print it into a PDF. |
outfile |
Filename for the plot. Ignored if |
... |
Graphical parameters passed to the function |
Details
The input file must follow the Copernicus Station Exchange Format (SEF). This function works with any numerical variable.
Zeroes are automatically excluded in bounded variables such as precipitation.
Author(s)
Alba Gilabert, Yuri Brugnara
Examples
climatic_outliers(Rosario$Tn, Meta$Tn, outpath = tempdir(), IQR = 4)