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

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

month_char(1:12)
#> [1] "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12"