match_month_day: Match a specific month and day

View source: R/match_month_day.r

match_month_dayR Documentation

Match a specific month and day

Description

Create an indicator variables for a specific month and day.

Usage

match_month_day(x, date_string)

Arguments

x

Numeric tis object.

date_string

Character string; Month and day of the date (Example - January 1 is '0101').

Value

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

Examples

july4_wed <- match_month_day(ic_week, '0707')

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