match_week: Match a specific week

View source: R/match_week.r

match_weekR Documentation

Match a specific week

Description

Create an indicator variable for a specific week.

Usage

match_week(x_week, week_number)

Arguments

x_week

Numeric tis object.

week_number

Numeric scalar; Week of the year to match.

Value

An indicator variable where the observation that matches the week entered = 1, 0 otherwise.

Examples

xmas_w53 <- match_week(ic_week, 53)

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