Description Usage Arguments Value Examples
View source: R/stockAnalyzer.R
Using exponential smoothing method to profile stock data
1 | exponentialSmoothing(data, newColname, alpha = 0.3)
|
data |
xts a time series object |
newColname |
character |
alpha |
numeric |
xts
1 2 3 4 5 | options("getSymbols.warning4.0"=FALSE)
quantmod::getSymbols("AAPL")
exp_smoothing_AAPL <- exponentialSmoothing(
AAPL,paste("expsmoothing", colnames(AAPL), sep="_") , 0.3
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.