Internal function to set up a smoothN accumulator.
Usage
setup_smoothN(initial, length, order, name)
Arguments
- initial
Initial value for the accumulator. If NULL, the first value of the variable to smooth is used. Defaults to NULL.
- length
Length of the smoothing.
- order
Order of the smoothing.
- name
Name of the accumulator.
Value
A named vector of initial values for the accumulator.