month_char: Convert month integers to two digit strings

Description Usage Arguments Value Examples

View source: R/dates.R

Description

Converts month from integer format to two digit string format. 1 to '01'. 11 to '11'.

Usage

1
month_char(month)

Arguments

month

integer vector; allowed values 1 to 12.

Value

character vector with 0 appended to the start of values less than 10.

Examples

1
month_char(1:12)

DRosenman/helpers documentation built on Dec. 17, 2021, 4:02 p.m.