climatic_outliers: Climatic outliers test

View source: R/C3FURV.R

climatic_outliersR 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 Data is a path, meta is ignored.

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 bplot is FALSE.

...

Graphical parameters passed to the function boxplot.

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)


c3s-data-rescue-service/dataresqc documentation built on April 10, 2023, 4:18 p.m.