Skip to content
Prev 5761 / 15274 Next

"Package", please ...

>> Here was a naive attempt to do standard deviation with
    >> sliding window
    >>> require(quantmod) getSymbols("AAPL") AAPL$STDDEV =
    >>> sd(Cl(AAPL), 20) AAPL$SMA = SMA(Cl(AAPL), 10) AAPL

    Jm> I am pretty sure that rollapply in the ZOO library would
    Jm> work for you.

There's neither "ZOO" nor would that be "library".

It is   "zoo"   and it  is a *package*.

Martin Maechler, ETH Zurich