Learn R Programming

prophet (version 0.4)

rolling_mean: Compute a rolling mean of x

Description

Right-aligned. Padded with NAs on the front so the output is the same size as x.

Usage

rolling_mean(x, w)

Arguments

x

Array.

w

Integer window size (number of elements).

Value

Rolling mean of x with window size w.