View source: R/moving_averages.R
EMA | R Documentation |
compute the Exponential Moving Average of a vector.
EMA(x = NULL, n = 10, smooth = 2, na.rm = TRUE)
x |
numeric vector. |
n |
integer, the number of length of the moving average. |
smooth |
numeric, a parameter to use for smoothing the moving average. |
na.rm |
logical, |
a vector of the same length of x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.