smooth_cl: Smooth realizations from estimating daily reports

View source: R/smooth.R

smooth_clR Documentation

Smooth realizations from estimating daily reports

Description

Smooth realizations from estimating daily reports

Usage

smooth_cl(cl.daily, prm.smooth)

Arguments

cl.daily

Data frame. Output of agg_to_daily().

prm.smooth

List. list of smoothing parameters. Parameters should be specified as followed:

  • method: smoothing method, either 'rollmean' (rolling mean) or 'loess' (LOESS smoothing via stats::loess())

  • window: for ⁠method = 'rollmean⁠ only; width of smoothing window in days

  • align: for ⁠method = 'rollmean⁠ only; smoothing alignment, either 'center', 'left', 'right'

  • span: for method = 'loess' only; smoothing span (see the documentation for stats::loess() for details)

  • floor: optional call for wastewater concentration smoothing with method = 'loess' only; user defined minimum smoothing concentration

Set this entire list to NULL to turn off smoothing

Value

Data frame


ern documentation built on April 4, 2025, 2:13 a.m.