| moving_average_seasonal | R Documentation | 
Moving average to smooth out seasonal time series
moving_average_seasonal(y, season, plotfig = TRUE)
y | 
 a vector with time series data  | 
season | 
 season = 12 for montly, season = 4 for quarterly etc  | 
plotfig | 
 if TRUE then a figure is plotted with data and moving average.  | 
a vector of the same length as y with moving averages (NA at boundaries)
M = moving_average_seasonal(c(AirPassengers), season = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.