Function for cubic spline-based smoothing with optional cross-validation, for use by fun_correct_drift
Arguments
- tbl
Table (
tibbleordata.frame) containing the fieldsqc_type,x(run order number), andy(variable)- ref_qc_types
QC types used for the smoothing (fit) by cubic spline
- log_transform_internal
Apply log transformation internally for smoothing if
TRUE(default). This does not affect the final data, which remains untransformed.- ...
Additional arguments forwarded to
smooth.spline