singleDayLag: Single-Day Lag Creator

Description Usage Arguments Value Examples

View source: R/singleDayLag.R

Description

Single-Day Lag Creator

Usage

1

Arguments

data

a vector for which the single-day lag is created

lag

a non-negative integer indicating the lag day

Value

A 'crossbasis' matrix showing the single-day lag

Examples

1
2
# Lag 1
singleDayLag(data = df$pm25, lag = 1)

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