out_hampel_filter: Hampel filter

Description Usage Arguments Details Value See Also

View source: R/outliers.R

Description

Hampel filter for detecting and substituting outliers in the environmental and sap flow data.

Usage

1
2
out_hampel_filter(y, k = 5L, t0 = 3L, method = "hampel", reverse = TRUE,
  parent_logger = "test")

Arguments

y

vector of values for outlier substitution

k

window semi-value (integer) for substitution value calculation. See details.

t0

Integer value indicating the number of standard deviations for outlier detection threshold.

method

Character vector indicating the method to use in the estimation: hampel (default), tukey and quantile.

reverse

Logical indicating if in case of k is bigger than the data length (i.e in the extremes of the vector) a reverse replication must be done. Default to TRUE.

Details

This is a modified version of the Hampel filter to avoid breaking when NAs are present in the data. Options include the posibility of using the median (classic Hampel, default), tukeyline or quantile regression estimations.

Value

A list with two elements:

See Also

Other outliers: out_remove, outlier_subs


sapfluxnet/sapfluxnetQC2 documentation built on May 29, 2019, 1:50 p.m.