match_date: Match a specific date

View source: R/match_date.r

match_dateR Documentation

Match a specific date

Description

Create an indicator variables for a specific date (year, month, day) for a weekly time series as defined in tis.

Usage

match_date(x, date_string)

Arguments

x

Numeric tis object.

date_string

Character string; Year, month and day of the date (Example - January 1, 1990 is '19900101').

Value

An indicator variable where the week contains the date entered = 1, 0 otherwise.

Examples

pandemic_start <- match_date(ic_week, '20200317')

bcmonsell/airutilities documentation built on May 16, 2022, 3:23 p.m.