Skip to contents

Adds temporal variables derived from the monyear column: date (first day of month), cal_year, month_num, and month (abbreviated month factor in calendar order).

Usage

add_calendar_vars(df)

Arguments

df

Data frame from get_hmis() containing a monyear column.

Value

The same data frame with four additional columns: date, cal_year, month_num, month.