Skip to contents

Smoothing of order N

Usage

smoothN(variable, length, order, initial = NULL)

Arguments

variable

Variable to smooth

length

Length of smoothing.

order

Order of smoothing.

initial

Value to initialize the accumulator with. If NULL, the first value of the variable to smooth is used. Defaults to NULL.

Value

Smoothed variable