Learn R Programming

prism (version 0.1.0)

mon_to_string: helper function for handling months

Description

Handle numeric month to string conversions

Usage

mon_to_string(month)

Arguments

month

a numeric vector of months (month must be > 0 and <= 12)

Value

a character vector (same length as month) with 2 char month strings.

Examples

Run this code
# NOT RUN {
  mon_to_string(month = c(1, 3, 2))
  mon_to_string(month = 12)
# }

Run the code above in your browser using DataLab