View source: R/library--data_prep--smooth_tools--ts_trend_gen.R
expSmoothMod | R Documentation |
expSmoothMod Add a column of the smoothed values using exponential smoothing
expSmoothMod(DF, InVar, OutVar, alpha = "guess", beta = "guess", Filter = NULL)
DF |
The DF we are to add a exponential smoothing column to |
InVar |
The column to be smoothed |
OutVar |
The name of the new column |
alpha |
The alpha fed into forecast exponential smoothing. if it equals "guess" then it if found using parameterGuess |
beta |
The beta fed into forecast exponential smoothing. if it equals "guess" then it if found using parameterGuess |
Filter |
Prefilter using the value of a Filter col |
A DF with an extra col with a exp smoothed version of InVar
data("Example_data", package = "Covid19Wastewater")
Example_data <- Example_data[Example_data$site == "Green Bay",]
expSmoothMod(Example_data, "N1", "expN1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.