Skip to contents

Function for loess-based smoothing, for use by corr_drift_fun

Usage

fun_loess(tbl, qc_types, span_width, ...)

Arguments

tbl

Table (tibble or data.frame) containing the fields QC_TYPE, x (run order number), and y (variable)

qc_types

QC types used for the smoothing (fit) by loess

span_width

Loess span width

...

Additional parameters forwarded to Loess

Value

List with a data.frame containing original x and the smoothed y values, and a boolean value indicting whether the fit failed or not not.