# NOT RUN {
what_month()
what_month(abbr = TRUE)
what_month(as_integer = TRUE)
# Work with vectors (when as characters):
ds <- c("2020-01-01", "2020-02-29", "2020-12-24", "2020-12-31")
what_month(when = ds)
what_month(when = ds, abbr = TRUE, as_integer = FALSE)
what_month(when = ds, abbr = TRUE, as_integer = TRUE)
# }
Run the code above in your browser using DataLab