Learn R Programming

ern (version 2.1.2)

smooth_cl: Smooth realizations from estimating daily reports

Description

Smooth realizations from estimating daily reports

Usage

smooth_cl(cl.daily, prm.smooth)

Value

Data frame

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