aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--R/ema.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/ema.R b/R/ema.R
index b4af957e..b0ce4932 100644
--- a/R/ema.R
+++ b/R/ema.R
@@ -1,3 +1,3 @@
- ema<-function(x, beta = 0.1, init=x[1]){
-filter(beta*x,filter = 1-beta,method = "recursive", init= init)
+ ema <- function(x, beta = 0.1, init=x[1]){
+ filter(beta*x, filter = 1-beta, method = "recursive", init = init)
}