smooth_mean: Smooth the mean values

Description Usage Arguments Value

Description

Applies the loess function to time series values and adds the fitted values to the data frame.

Usage

1
smooth_mean(.data, key, .col = ".mean", span = 0.5, na.action = "na.exclude")

Arguments

.data

A data frame from a forecast object

key

Column to group by

.col

String with the name of the column to smooth, default is ".mean"

span

Parameter which controls the degree of smoothing

na.action

Action to be taken with missing values in the response or predictors. The default is "na.exclude".

Value

Returns a tibble object.


bgulbis/fcasthelpr documentation built on Sept. 29, 2020, 11:52 p.m.