Function for loess-based smoothing, for use by corr_drift_fun
Usage
fun_loess(tbl, reference_qc_types, ...)
Arguments
- tbl
Table (tibble
or data.frame
) containing the fields qc_type
, x
(run order number), and y
(variable)
- reference_qc_types
QC types used for the smoothing (fit) by loess
- ...
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.