ra: Calculate running average

View source: R/ra.R

raR Documentation

Calculate running average

Description

Calculate running average

Usage

ra(x, n = 7, s = 2, ...)

Arguments

x

vector to calculate the unning average on.

n

window size. Default = 7.

s

side. If s = 1, the values are based on past values only, if s = 2, the values are centered in the window.

...

further arguments passed to stats::filter

Value

a vector of running average values


ktbaek/c19dk documentation built on March 26, 2022, 1:47 a.m.