Create filter weights. Typically used to compute even,
weighted, or center-weighted averages for smoothing. Can
be used as a vector of weights in stats::filter
Usage
filterWgts(n = NULL, type = "weighted")
Arguments
n
number of values
type
Averaging method ("uniform" [even], "weighted" [default], or "centered") for creating weights.