CalcRunningMean: Calculate a running mean

Description Usage Arguments Value

View source: R/utilities.R

Description

CalcRunningMean takes series and calculates a running mean over specified number of records

Usage

1
CalcRunningMean(x, n, sides = 2, ts = FALSE)

Arguments

x

Vector of values

n

Number of records to use

sides

Whether to use both sides (2=past and future) or just one side (1=past only).

ts

Flag whether or not to return a time series object or just a vector (DEFAULT=FALSE, which returns a vector)

Value

Vector of moving averages


mccreigh/rwrfhydro documentation built on May 12, 2018, 3:08 a.m.