exponentialSmoothing: Using exponential smoothing method to profile stock data

Description Usage Arguments Value Examples

View source: R/stockAnalyzer.R

Description

Using exponential smoothing method to profile stock data

Usage

1
exponentialSmoothing(data, newColname, alpha = 0.3)

Arguments

data

xts a time series object

newColname

character

alpha

numeric

Value

xts

Examples

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
    )

UBC-MDS/stockAnalyzer documentation built on March 21, 2021, 7:14 p.m.