mrangeFun {qAnalyst} | R Documentation |
mrangeFun
returns the moving ranges vector of specified interval from an input vector x.
mrangeFun(x, sg = 1)
x |
individual values vector |
sg |
interval width, default 1 |
NA elements are present in the first interval elements of the returned vector as moving range is not defined there.
A numeric vector of moving ranges.
Internal function
Giorgio Spedicato
internal function
#simple example a=c(1,3,5,2,6,2,6,8,2) print(mrangeFun(a,2))