exponentialSmoothing.Rd
Using exponential smoothing method to profile stock data
exponentialSmoothing(data, newColname, alpha = 0.3)
xts a time series object
character
numeric
xts
options("getSymbols.warning4.0"=FALSE) quantmod::getSymbols("AAPL") #> Registered S3 method overwritten by 'quantmod': #> method from #> as.zoo.data.frame zoo #> [1] "AAPL"exp_smoothing_AAPL <- exponentialSmoothing( AAPL,paste("expsmoothing", colnames(AAPL), sep="_") , 0.3 )