repr_sma {TSrepr} | R Documentation |
Simple Moving Average representation
Description
The repr_sma
computes Simple Moving Average (SMA) from a time series.
Usage
repr_sma(x, order)
Arguments
x |
the numeric vector (time series) |
order |
the order of simple moving average |
Value
the numeric vector of smoothed values of the length = length(x) - order + 1
Author(s)
Peter Laurinec, <tsreprpackage@gmail.com>
Examples
repr_sma(rnorm(50), 4)
[Package TSrepr version 1.1.0 Index]