movAvgLag: Moving Average Creator

Description Usage Arguments Value Examples

View source: R/movAvgLag.R

Description

Moving Average Creator

Usage

1
movAvgLag(data, lag1, lag2)

Arguments

data

a vector for which the moving average is created

lag1

a non-negative integer indicating the starting lag day (lag2 > lag1)

lag2

a non-negative integer indicating the ending lag day (lag2 > lag1)

Value

A 'crossbasis' matrix showing the moving average

Examples

1
2
MA 0-3
movAvgLag(data = df$pm25, lag1 = 0, lag2 = 3)

jianzhaobi/bjzresc documentation built on Feb. 14, 2021, 7:45 a.m.