executeflagout: Remove Outliers

Description Usage Arguments

View source: R/functions_L2.R

Description

executeflagout removes outlier values flagged by createflagout.

Usage

1
executeflagout(df, len, frag_len, plot_density = FALSE, plot_export, frost_thr)

Arguments

df

input data.frame.

len

specifies the minimal number of consecutive times the value difference threshold has to be exceeded for flagging.

frag_len

numeric, specifies the length of data fragments occurring in-between missing data that are automatically deleted during data cleaning. This can be helpful to remove short fragments of erroneous data within a period of missing data, i.e. after jumps. If frag_len = NULL the default value is set to frag_len = 2.1.

plot_density

logical, defines whether density plots should be drawn in the console. Can be used to check outlier thresholds and removal.

plot_export

logical, specifies whether the plots are exported as a PDF file to the working directory or are plotted in the console.

frost_thr

numeric, increases the thresholds for outlier and jump detection in periods of probable frost (i.e. temperature < lowtemp). The thresholds are multiplied by the value provided.


treenet/treenetproc documentation built on June 16, 2021, 4:39 p.m.