moving: Moving Average

Description Usage Arguments Value

Description

moving() returns a vector of averages obtained from the n elements of x preceding and including the element at each respective index

Usage

1
moving(x, n = 5)

Arguments

x

a numerical vector to calculate the moving average

n

the number of elements to include in the moving average

Value

the vector of the moving average.


pbulsink/hockeyR documentation built on May 15, 2019, 4:16 p.m.